Raised This Month: $51 Target: $400
 12% 

AMX Map Handler


Post New Thread Reply   
 
Thread Tools Display Modes
people
Junior Member
Join Date: Mar 2004
Old 03-19-2004 , 17:02  
Reply With Quote #11

Linux RedHat 9.0 - Steam CS 1.6

I had the same plugin working with AMX .97 on the same server. Nothing has been changed except for the upgrade to AMXX
people is offline
[-Alt-]
Junior Member
Join Date: Mar 2004
Old 03-21-2004 , 18:39  
Reply With Quote #12

Quote:
Originally Posted by people
Next problem, is it my server?

when you go into the maps.ini all that it has is the map name not the description that AMXX need for the meny system. Plus as you keep on changelevel it just adds to the list. Thi is what my map.ini looks like after 3 maps changes:

as_oilrig
as_oilrig
as_oilrig
cs_arabstreets
cs_arabstreets
cs_arabstreets
cs_assault
cs_assault
cs_assault
cs_assault2k
cs_assault2k
cs_assault2k
...
I had the same problem in my server.
gentoo linux 2004.0 - Steam CS 1.6
[-Alt-] is offline
[-Alt-]
Junior Member
Join Date: Mar 2004
Old 03-23-2004 , 08:00  
Reply With Quote #13

fix:

stock charOccurances(string[],matchchar[]) {
if (strlen(matchchar) != 1)
return -1

new occurances = 0
new len = strlen(string)
for (new i = 0;i < len;i++) {
if (string[i] == matchchar[0]) {
occurances++
}
}
return occurances
}
[-Alt-] is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-23-2004 , 08:30  
Reply With Quote #14

occurances is automatically inited to 0 here...

Did that fix your problem?
Johnny got his gun is offline
[-Alt-]
Junior Member
Join Date: Mar 2004
Old 03-23-2004 , 08:46  
Reply With Quote #15

(sorry for my english)

Yes, it fix problem.
Occurances is not automatically inited to 0, it has random value 6000-9000.

In addition I have made:

// Get mapsCount.
new mapsCount=0, mapsCountString[10], mcs_len
read_file(infile,0,mapsCountString,9,mcs_len)

to fix:

Quote:
Pluging loads but getting this in the server console:
[AMX Map Handler] DEBUG - Initing
[AMX Map Handler] Found 62 valid maps in server.
[AMX] Starting dump of maps...
[AMX] Successfully wrote 42656 lines to 'addons/amxx/configs/maps.ini'.


when you go into the maps.ini all that it has is the map name not the description that AMXX need for the meny system. Plus as you keep on changelevel it just adds to the list.
[-Alt-] is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-23-2004 , 09:17  
Reply With Quote #16

Locals are always inited to 0 where I'm at, I don't remember if this is compiler specific but maybe you should try this with latest version from cvs: http://www.tcwonline.org/cgi-bin/vie...plugins/sc.exe
Johnny got his gun is offline
kaksi
Junior Member
Join Date: Apr 2004
Old 05-28-2004 , 06:02  
Reply With Quote #17

I get the following when running this plugin:

Code:
[AMX] Starting map: de_dust
[AMX Map Handler] DEBUG - Initing
[AMX Map Handler] WARNING - Found 0 valid maps in server.
[AMX] Starting dump of maps...
[AMX] Successfully wrote 6 lines to 'addons/amxx/configs/maps.ini'.
I havn't altered it in any way...
kaksi is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 05-31-2004 , 07:23  
Reply With Quote #18

Ok obviously you have the same problem as those above. So I posted a version that inits local vars to 0. That should fix this problem. If not, tell me...
Johnny got his gun is offline
kaksi
Junior Member
Join Date: Apr 2004
Old 06-01-2004 , 04:40  
Reply With Quote #19

Still doesnt work:

Code:
[AMX Map Handler] DEBUG - Initing
[AMX Map Handler] WARNING - Found 0 valid maps in server.
About to write to addons/amxx/custom/amx_maphandler.dat.
[AMX] Starting dump of maps...
L 06/01/2004 - 09:27:18: [AMXX] Run time error 3 on line 383 (plugin "amx_maphandler.amx")
kaksi is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 06-01-2004 , 05:19  
Reply With Quote #20

That sucks. Still works for me. What versions of everything are you running? There is another plugin "mapcycle generator" or something, which does almost the same stuff. It has NS support do, which I don't have. Might wanna try that...
Johnny got his gun is offline
Reply



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 10:17.


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