Page 1 of 1
Weapons
Posted: Wed Jul 13, 2005 4:06 pm
by socom
I can't seem to get any weapons working on ATWA. The weapons script is all set up, I've checked it at least 50 times by now.
And how do you make it so only certain weapons can destroy a building?
Posted: Wed Jul 13, 2005 4:51 pm
by Fooli
Point 1: well, it's a settings problem or a model problem, I reckon. Most likely your world/vehicle settings, or weapon script. Try and get a basic machinegun working (that'll determine if it's missing models that are causing the problem, cos MGs are done in code). You sure the weapon script is saved with the right name/in the right place?
Maybe post an example we can look at if so... praps someone can spot the problem. As with any scripting system it's quite easy to set something up that'll simply never work :)
Point 2: like this:
http://islanddownloads.com/islands/Weapons.mts (notice the builddamage setting)
f
Posted: Wed Jul 13, 2005 7:44 pm
by socom
Im still using the defualt scirpt I haven't messed wiht it one bit, I've assigned all the weapons to a vehicle, and assigned a model to each weapon. Ive checked the world settings plenty times and still see no problem
Posted: Fri Jul 15, 2005 11:55 pm
by socom
Any suggestions?
Posted: Sat Jul 16, 2005 10:33 am
by Fooli
Um. Ok. So in world settings you've got weapon selection mode to 0. You've given a vehicle its primary and secondary weapons in vehicle settings, and you've got weapons.mts in your world/data folder.
Is there any error message at all when you try to fire?
I stil say post an example from your script... just cos ur usin the default doesn't mean it's right :)
Apart from that, all I can think of is... check the file extension on weapons.mts (has windows been helpful and called it something like weapons.mts.txt?). Check it's in the right place ([world folder]/data). Check obvious things like surface properties that might stop you firing.
f
Posted: Sat Jul 16, 2005 11:31 am
by Mit
i'll be around all day so ill pop in on atwa n check it out if i see you around.
lil suggestion that might help : try changing the object= line in the weapon you're looking at to 'Object=plasma1'. There seems to be a bug with the 'Object=Projectile' weapon in the current clients so if its using that it may not work. (I'll fix that today).
Typing '.refreshweap 1' might also help - it prints some error messages if any of the lines in the weapon script are not understood by the game.
Posted: Sat Jul 16, 2005 4:15 pm
by socom
I messed around with allot of stuff today and even though I have no clue what I did, I fixed it.
Posted: Mon Jul 25, 2005 7:17 pm
by socom
Now I can't get the new weapon script to reload. I saved it into the weapons.mts file in the data folder, use .refreshweap and .refreshweap1 the weapons blink like they reloaded but they haven't.
Posted: Tue Aug 02, 2005 8:21 pm
by socom
Still have the problem.
Posted: Wed Aug 03, 2005 8:59 am
by Mit
mm.. working fine for me, can't see how thered be any problem with that system..
coupla things to check..
1) its .refreshweap 1 (i.e. with a space), not .refreshweap1
2) You're not accidentally saving the weapons.mts in the client's (rather than the server's) data folder are you? Ive done that before and ended up confused when the .refreshweap just redownloads the original server file over my client one.
assuming neither of those applies, try adding a nonsense line to your weapon script and check that .refreshweap 1 reports it as an error. If that does happen you know for definite the file is being reloaded. (and if it is being reloaded ya then might wanna double-check that the weapon you're changing is the one you're using on the vehicle - thats another easy mistake that has confused me in the past..)
Posted: Wed Aug 03, 2005 10:38 am
by Magicfinger
do weapon files sit on a http download server?
if so are you sure your changing the right one i.e changing the one local to the server whereas its downloading a different one from web space
just a thought
Posted: Wed Aug 03, 2005 10:40 pm
by socom
I took all your advice and still nothing.
Posted: Thu Aug 04, 2005 10:12 am
by Mit
Even "try adding a nonsense line to your weapon script and check that .refreshweap 1 reports it as an error." doesnt do anything ??
ummmmmmmmmmmmm.... im really very confused then. That works for everyone else in the world, so you must be very 'Special' :]
umm.. only vague possibility i can think of now is that your weapons.mts file on the client has been made read-only.. i suppose that might do it.
Do weapons on other planets work as you'd expect?