AMX problem

RED

New Adventurer
Joined
Apr 10, 2006
Messages
39
Reaction score
0
Location
Columbia, IL/Rolla, MO
[AmX] Error raised (module "AMX-File") (function "write_file")
[AMX] Run time error 10 on line 41 (plugin "lastmap.amx")

I tried replacing the lastmap.amx file but that didn't do anything. I'm not very knowledgable on this kind of stuff so if someone could help me out that'd be cool.

RED
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
lastmap.amx writes the current map to the crashed.cfg, so that the server may use it to begin on the last map it was at, in event of crash.

Check that c:\hlds\msc\crashed.cfg is not write protected.

Worst case scenerio, you can remove the plugin, by placing a semi-colon (;) before it in the c:\hlds\msc\addons\amx\config\plugins.ini with notepad.
 

RED

New Adventurer
Joined
Apr 10, 2006
Messages
39
Reaction score
0
Location
Columbia, IL/Rolla, MO
Well I think the mapvote uses it too. I have two servers set up and the one with this problem, the votemap doesn't work correctly. It'll let you vote and it says it'll change the map, but it just puts you right back without changing the map at all. But hopefully over the summer I'll be getting a better computer so I can have one specifically for the server and one to play on. So then this shouldn't be a problem.

RED
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
Yeeeah. The votemap system writes to the crashed.cfg so that, in the event of a transition crash (for one reason or another) the server restarts on the map that was voted in.

Possibilities I can think of causing it to be unable to write:
- Drive Write Protected
- Virus software preventing AMX writes
- Wrong version of AMX
- Wrong version of Metamod

Last two not likely an issue if you are using the msc amx package, and you haven't updated it.

Other than that, I've no clue as to what might cause that.

Should also point out, however, that the votemap system does not work on listen servers (it'll just drop you), nor will it work without the spawn anywhere maps, as you'll spawn in the ground on the new map.
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
I'm looking at your laptop server... Hmmm...

Did you, by chance, add "exec crashed.cfg" to your "server.cfg" or some such? One thought I had is that, for some reason, it's running the crashed.cfg every map change... But... Hmm... Even that wouldn't really explain it.

I know it's either not writing to the crashed.cfg, or not running it. Sir Killalot and I have characters that can't zone together - crashed your server in Thornlands to experiment - and it restarted in Edana. At least your restarter works, but yeah, the lastmap thing isn't.

I dunno... Only other thing I can think of, is to wipe the HLDS from the laptop, and copy the #1 server's over, and make absolutely sure they are starting with the same command line.
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
Gah...

Maybe... The crashed.cfg was open in another program when you copied the files... And thus got ported with a read-only flag? *sigh* I dunno, I'm reaching here - maybe make sure the folder and it's contents aren't write protected? :\
 
Top