Weapons

Forum Archive - from http://theuniversal.net
Locked
User avatar
socom
Posts: 158
Joined: Sat Mar 12, 2005 3:13 pm
Location: Ireland

Weapons

Post 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?
User avatar
Fooli
Staff
Staff
Posts: 1957
Joined: Sun Oct 05, 2003 2:38 pm
Location: Mars

Post 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
User avatar
socom
Posts: 158
Joined: Sat Mar 12, 2005 3:13 pm
Location: Ireland

Post 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
User avatar
socom
Posts: 158
Joined: Sat Mar 12, 2005 3:13 pm
Location: Ireland

Post by socom »

Any suggestions?
User avatar
Fooli
Staff
Staff
Posts: 1957
Joined: Sun Oct 05, 2003 2:38 pm
Location: Mars

Post 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
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post 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.
User avatar
socom
Posts: 158
Joined: Sat Mar 12, 2005 3:13 pm
Location: Ireland

Post by socom »

I messed around with allot of stuff today and even though I have no clue what I did, I fixed it.
User avatar
socom
Posts: 158
Joined: Sat Mar 12, 2005 3:13 pm
Location: Ireland

Post 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.
User avatar
socom
Posts: 158
Joined: Sat Mar 12, 2005 3:13 pm
Location: Ireland

Post by socom »

Still have the problem.
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post 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..)
User avatar
Magicfinger
Staff
Staff
Posts: 1078
Joined: Tue Sep 30, 2003 10:38 am
Location: here,there and everywhere

Post 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
User avatar
socom
Posts: 158
Joined: Sat Mar 12, 2005 3:13 pm
Location: Ireland

Post by socom »

I took all your advice and still nothing.
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post 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?
Locked