Raised This Month: $ Target: $400
 0% 

My custom created spawn points are not loading up


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ishanjain
Junior Member
Join Date: May 2009
Old 07-02-2009 , 07:09   My custom created spawn points are not loading up
Reply With Quote #1

I created some spawn points in some custom maps with the help of the spawn_editor utility in CSDM. Here are the complete detail to what i did.

1. Enabled the plugins spawn_editor from plugins.ini
2. While in game, i typed edit_spawns. A menu showed up and i started creating the sapwn points.
3. When i was done, i selected 5.exit from the menu and restarted the server with that map.


Now the map isnt using those newly created spawn points although they are being listed in the config/csdm folder. Am i missing some point or doing it wrongly???

For example, i am attaching this spawn config file for the map called fun_box. This one is a famous map so someone plz try it out on his server to check wheather it is working or not.
Attached Files
File Type: cfg fun_box_spawns.cfg (727 Bytes, 146 views)
__________________
ishanjain is offline
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 07-03-2009 , 02:52   Re: My custom created spawn points are not loading up
Reply With Quote #2

Check those settings:
in csdm.cfg in [settings] section:
spawnmode = preset

in plugins-csdm.ini this line should be enabled:
csdm_spawn_preset.amxx

The file with spawn points should be located ins amxmodx\configs\csdm and shoulbe be called mapname.spawns.cfg

Another thing. In csdm_spawn_presets.sma there is a limitation for the path length for Your files.
Code:
readSpawns()
{
	new Map[32], config[32],  MapFile[64]
	
	get_mapname(Map, 31)
	get_configsdir(config, 31)
	format(MapFile, 63, "%s\csdm\%s.spawns.cfg", config, Map)
Change config[32] to config[256], MapFile[64] to MapFile[256], then get_mapname(Map, 31) to get_mapname(Map, 255) and format(MapFile, 63, "%s\csdm\%s.spawns.cfg", config, Map) to format(MapFile, 255, "%s\csdm\%s.spawns.cfg", config, Map)
save that sma and compile it once more. Copy compiled version to amxmodx\plugins folder. That should help.
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline
ishanjain
Junior Member
Join Date: May 2009
Old 07-03-2009 , 04:04   Re: My custom created spawn points are not loading up
Reply With Quote #3

Quote:
Check those settings:
in csdm.cfg in [settings] section:
spawnmode = preset
It was already there..

Quote:
in plugins-csdm.ini this line should be enabled:
csdm_spawn_preset.amxx
There is no such file plugins-csdm.ini. There was a file called sample_plugins which contains that line csdm_spawn_preset and is enabled by default.


Quote:
The file with spawn points should be located ins amxmodx\configs\csdm and shoulbe be called mapname.spawns.cfg
Yes the new spawn files are being created there but no effect on spawns.

Quote:
Another thing. In csdm_spawn_presets.sma there is a limitation for the path length for Your files.
Code:
readSpawns()
{
    new Map[32], config[32],  MapFile[64]
    
    get_mapname(Map, 31)
    get_configsdir(config, 31)
    format(MapFile, 63, "%s\csdm\%s.spawns.cfg", config, Map)
Change config[32] to config[256], MapFile[64] to MapFile[256], then get_mapname(Map, 31) to get_mapname(Map, 255) and format(MapFile, 63, "%s\csdm\%s.spawns.cfg", config, Map) to format(MapFile, 255, "%s\csdm\%s.spawns.cfg", config, Map)
save that sma and compile it once more. Copy compiled version to amxmodx\plugins folder. That should help.
Well, is this necessary??? I dont want to make large spawns.....





Have you tried those spawns which i attached. Do you want to create spawns for some more maps so that you can test it on your server???
__________________
ishanjain is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-03-2009 , 07:18   Re: My custom created spawn points are not loading up
Reply With Quote #4

Quote:
There is no such file plugins-csdm.ini. There was a file called sample_plugins which contains that line csdm_spawn_preset and is enabled by default.
You say that there is no such file but this file is present by default in the official package or KWo's version. Anyway, csdm_spawn_preset plugin should be actived, is it your case ? ( amxx list )
__________________
Arkshine is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 07-03-2009 , 07:24   Re: My custom created spawn points are not loading up
Reply With Quote #5

Quote:
Attached Files
fun_box_spawns.cfg
Quote:
shoulbe be called mapname.spawns.cfg
Hmm?
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
ishanjain
Junior Member
Join Date: May 2009
Old 07-03-2009 , 07:57   Re: My custom created spawn points are not loading up
Reply With Quote #6

^^ Thank you so much man... you got an eye for detail.... i missed that thing...


Now two more problems... One is this one itself, why is spawn edit plugin naming those files wrongly....
Second one, like in the case of the map fun box, those spawn points which are default to the map are also being used. I should i remove them??

Now creating spawn points for almost all maps i got as i see a lot of people asking for them....
__________________
ishanjain is offline
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 07-04-2009 , 03:06   Re: My custom created spawn points are not loading up
Reply With Quote #7

Quote:
Originally Posted by ishanjain View Post
Well, is this necessary??? I dont want to make large spawns.....
It is necessary to get the full path for the file. If it exceeds 64 characters, it will not load Your spawns neither. Anyway DarkGod had a god's eye.
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode