PDA

View Full Version : Think I'm making a rookie mistake w/ a server side weapon mod


The Reverend
10-31-2005, 01:17 PM
I have a simple weapons mod that works fine on a local SH server but not on a hosted box @ clanservers. I think it's probably a stupid mistake but I can't find it.

I started with a very simple change, clipsize and startammo. I copied the models-weapons-thompsonsmk.tik file from the Pak0.pk3 file in my main dir. I have the Original MOHAA, with SH and BT added in as they were released. So I have the mainta and maintt folders as well. Not sure if it makes a difference but figured more info could't hurt.

Used pakscape to open pk3, copied data out I wanted. Setup a working area on my PC and kept directory structure the same models - weapons - thompsonsmg.tik.

Edited the tik by placing a comment // infront of clipsize 30
and putting clipsize 40 in a line underneath it, likewise for startammo.

Put the files into a new pk3 using pakscape and then place the mod file in my servers mainta folder. No other mod files in any of the other MOHAA directories, only the pk3 files that came with the game. Mod is called zweapon.pk3

Start the local server for a box on my network, login to game from my PC, works like a charm, settings are just as I want them to be. Give the same file to my friend to upload to his hosted box and it's like it isn't even there after it's restarted. Only mod that is running is foresight 1.5 along with a few custom map and skin packs but nothing to do with weapons. Adding a ton of z's to it and still no good. File is going into the mainta folder on the server.

We're both using ver 2.15.

I just can't figure out what I'm doing wrong. Any thoughts or words of advice would be appreciated. I have attached the mod for inspection if you want.

Thanks!

-Reverend

SNYPE
10-31-2005, 10:27 PM
Foresight contains a Weapon Limiter function which contains weapon tik files, that may be the conflict. Foresight can be run without the Weapon limiter, just remove the WeapLimit pk3 files from the server.

GaSplat
11-01-2005, 01:52 AM
ALternatively, edit the tik file in the the Foresight WeapLimit.pk3 (haven't tried it, but that could work).

The Reverend
11-02-2005, 12:21 AM
I took a look at the weaplimit pk3 file from Foresight and it does not appear to contain any weapon tik files at all. Just an scr and an st file. Contents of which have to do with character mapping, skins and such, and the other seems to be a limiter so that character can only have 1 weapon at a time. No tik files at all.

GaSplat
11-02-2005, 12:36 AM
Check the log for the server and make sure that the mod pk3 is where it should be on the path list at server start up (right at the beginning of the log). If it is behind anything else then the other stuff will overrule it. If it does not appear then it is not copied to the correct folder or the server was not restarted after the file was copied.

SNYPE
11-02-2005, 07:16 PM
I took a look at the weaplimit pk3 file from Foresight and it does not appear to contain any weapon tik files at all. Just an scr and an st file. Contents of which have to do with character mapping, skins and such, and the other seems to be a limiter so that character can only have 1 weapon at a time. No tik files at all.
You're right, hadnt looked at it in a while. The scr file does contain a lot of code that makes changes to a players tiks so its still best to remove that pk3 while testing. Besides if they dont use the Foresight WeaponLimiter they dont need to have that pk3 on the server at all (its just a potential conflict waiting to happen!).
I checked your zweapon pk3 and noticed that you have not only changed the values but you changed the cvar names. Heres what my AMMO section reads in thompsonsmg.tik:

//========================================//
// AMMO //
//========================================//
firetype bullet
ammotype "smg"
meansofdeath bullet
bulletcount 1
clipsize 30
ammorequired 1
sp startammo 30
dm startammo 180
sprealism startammo 30
dmrealism startammo 120
// Additional DM Loadout
dm additionalstartammo "grenade" 2
dm additionalstartammo "smokegrenade" 1
dm startitem "items/binoculars.tik"
// Additional DM Realism Loadout
dmrealism additionalstartammo "grenade" 2
dmrealism additionalstartammo "smokegrenade" 1
dmrealism startitem "items/binoculars.tik"


The "startammo" should be "dm startammo" and there should also be a "dmrealism startammo".
You have deleted all of the Realism settings. If your friend has Realism set On then his server will use the stock values.

I would start over with a fresh copy of the tik file. Do not delete anything simply comment out the line you want to change and add a new line.