Objects Dissapeared
#1

I had lots of objects, but when i added a own car system all the objects dissapeared. I can see vehicles but no objects (like they never were there). I updated the server to 0.3x and downloaded the latest Streamer by Incognito.
I have no idea what's the problem, when compiling i get no errors, no warnings.
Need help quickly.
Reply
#2

You're creating the objects with CreateDynamicObject right?
Can you show some of the code where you create objects anyways?
And also check the console/server log there are no warning when starting the server, and make sure the plugin is loaded correctly
Reply
#3

Yes, CreateDynamicObject :
Код:
CreateDynamicObject(984,-1954.8994141,588.5996094,34.9000015,0.0000000,0.0000000,90.0000000); //object(fenceshit2) (4)
	CreateDynamicObject(983,-1961.3000488,585.4000244,35.0000000,0.0000000,0.0000000,0.0000000); //object(fenceshit3) (1)
	CreateDynamicObject(10832,-1930.4000244,568.5000000,36.0999985,0.0000000,0.0000000,270.0000000); //object(gatehouse2_sfse) (1)
	CreateDynamicObject(983,-1924.5999756,574.2000122,35.0000000,0.0000000,0.0000000,0.0000000); //object(fenceshit3) (2)
	CreateDynamicObject(1232,-1925.0000000,571.2999878,36.9000015,0.0000000,0.0000000,0.0000000); //object(streetlamp1) (1)
	CreateDynamicObject(983,-1924.5999756,567.9000244,34.9000015,0.0000000,0.0000000,0.0000000); //object(fenceshit3) (3)
	CreateDynamicObject(983,-1924.5999756,561.5999756,34.9000015,0.0000000,0.0000000,0.0000000); //object(fenceshit3) (4)
	CreateDynamicObject(983,-1970.6999512,561.2999878,34.9000015,0.0000000,0.0000000,90.0000000); //object(fenceshit3) (5)
	CreateDynamicObject(1231,-1961.3000488,582.0999756,36.9000015,0.0000000,0.0000000,0.0000000); //object(streetlamp2) (1)
No, errors in the log:
Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3x, ©2005-2013 SA-MP Team

[13:35:04] 
[13:35:04] Server Plugins
[13:35:04] --------------
[13:35:04]  Loading plugin: streamer.dll
[13:35:04] 

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[13:35:04]   Loaded.
[13:35:04]  Loaded 1 plugins.

[13:35:04] 
[13:35:04] Ban list
[13:35:04] --------
[13:35:04]  Loaded: samp.ban
[13:35:04] 
[13:35:04] 
[13:35:04] Filterscripts
[13:35:04] ---------------
[13:35:04]   Loading filterscript 'gl_actions.amx'...
[13:35:04]   Loading filterscript 'gl_realtime.amx'...
[13:35:04]   Loading filterscript 'attachments.amx'...
[13:35:04]   Loading filterscript 'skinchanger.amx'...
[13:35:04] 
--Admin Player Skin Changer Loaded

[13:35:04]   Loading filterscript 'vspawner.amx'...
[13:35:04] 
--Admin Vehicle Spawner Loaded

[13:35:04]   Loading filterscript 'FLG.amx'...
[13:35:04]   Loading filterscript 'ls_elevator.amx'...
[13:35:04]   Loading filterscript 'Matuokliai.amx'...
[13:35:04] 
--------------------------------------
[13:35:04]  Blank Filterscript by your name here
[13:35:04] --------------------------------------

[13:35:04]   Loading filterscript 'SpikeStrip.amx'...
[13:35:04]   Loading filterscript 'stars.amx'...
[13:35:04]   Loaded 10 filterscripts.

[13:35:04] FLG: Checking enviroment.
[13:35:04] FLG: Loading Master configuration settings.
[13:35:04] FLG: Success... current session id is: 98
[13:35:04] FLG: Applying pre-release configuration...
[13:35:04] EnableTirePopping() function is removed.
[13:35:04] Warning: EnableZoneNames() is removed since 0.3
[13:35:04]   Filterscript 'UPDATE.amx' unload failed.
[13:35:04]   Filterscript 'UPDATE.amx' load failed'.
[13:35:04] FLG: Creating menues...
[13:35:04] FLG: Enabling treasure hunt script...
[13:35:04] FLG: Preparing Skins and Classes...
[13:35:04] FLG: Loading pickups, jobs, bussines, houses and gas stations...
[13:35:04] RPG4: Creating vehicles and preparing gas system...
[13:35:04] FLG: Loading house and bussines ownership data...
[13:35:04] Kraunami namai
[13:35:04] GRP3: Executing meta file. This is the last step of the loading process.
[13:35:04] GRP3: If you wish to view the log of startup, please look up.
[13:35:04] 









[13:35:04]                  ----------------------------------------------
[13:35:04]                        (2013-02-02)
[13:35:04]                  ----------------------------------------------
[13:35:04] 








[13:35:04] Number of vehicle models: 36
[13:35:42] Incoming connection: 127.0.0.1:1378
[13:35:42] [join] Medvedev has joined the server (0:127.0.0.1)
[13:35:56] loadingData
[13:37:23] savingDATA
[13:37:24] [part] Medvedev has left the server (0:1)
[13:37:29] --- Server Shutting Down.
[13:37:29] 

*** Streamer Plugin v2.6.1 by Incognito unloaded ***
Reply
#4

Do they all dissapear, or randomly, or maybe from one point in the script?
I had the same issue, that they wouldn't load from a specific point, so I just split it up, and put the part that works in 1 callback, and then the other part somewhere else, in a different callback.
Not sure if that would solve your problem though
Reply
#5

All objects dissapeared completely.
You mean make several OnGameModeInit ??
Reply
#6

No, I mean like, public Loadmaps1(), public Loadmaps2(), and call those on OnGameModeInit, or maybe call the next one from each public.
Again, not sure if this is a solution, it might be I changed something else that solved it, so make a backup so that you don't have to change everything back again if it doesn't work
Reply
#7

hmmm....sorry i didnt really understand, like this?
public ongamemodeinit()
{
public loadmaps1()
{
objects
}
}
Reply
#8

No, I mean like this:
pawn Код:
forward loadMaps1();
forward loadMaps2();

public OnGameModeInit()
{
loadMaps1();
loadMaps2();
}

public loadMaps1()
{
//some mapping
}
public loadMaps2()
{
//some more mapping
}
Reply
#9

it didnt work
Reply
#10

Yeah, I thought so
Sorry that I can't help you further, I hope someone else knows what's wrong here.

//Edit: and what happens if you create the objects like this:
pawn Код:
CreateDynamicObject(984,-1954.8994141,588.5996094,34.9000015,0.0000000,0.0000000,90.0000000,-1,-1,-1,300.0);
instead of
pawn Код:
CreateDynamicObject(984,-1954.8994141,588.5996094,34.9000015,0.0000000,0.0000000,90.0000000);
I added a few other values, including the stream distance.
Not sure if this will do it either, but it's worth the try
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)