project-navigation
Personal tools

Author Topic: Changing the weapons you get in multiplayer  (Read 8277 times)

Elpolodiablo

  • Guest
Changing the weapons you get in multiplayer
« on: May 16, 2008, 09:20:20 am »
Me and several others would like to knowhow to change the number of each equipment you can add to your team. And UFO files is not an answer.

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Changing the weapons you get in multiplayer
« Reply #1 on: May 16, 2008, 12:58:54 pm »
If you don't want to edit the UFO files, you're going to somehow hack the network traffic data, I guess? What were you expecting?

Elpolodiablo

  • Guest
Re: Changing the weapons you get in multiplayer
« Reply #2 on: May 16, 2008, 04:01:49 pm »
Every other time the only answer is "LOOK IN TEH UFO FILES"

I have and its not in any place that makes sence

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Changing the weapons you get in multiplayer
« Reply #3 on: May 16, 2008, 04:19:13 pm »
It's in equipment.ufo. If that doesn't make sense to you, maybe you should get a new sense of sense.

Offline Doctor J

  • Squad Leader
  • ****
  • Posts: 265
    • View Profile
Re: Changing the weapons you get in multiplayer
« Reply #4 on: May 16, 2008, 05:53:49 pm »
I'm sorry, but the .ufo files are NOT self-documenting.  Putting people down for not knowing what's in there would be less mean if there were useful comments in there.

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Changing the weapons you get in multiplayer
« Reply #5 on: May 16, 2008, 06:07:43 pm »
It's not about the comments, it's about the name of the file. Why would you NOT look there first?

Plus, there certainly *is* a comment in there that states the relevant list is for multiplayer.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Changing the weapons you get in multiplayer
« Reply #6 on: May 19, 2008, 03:58:04 pm »
offtopic: hehe - i remember BTAxis from the good old days where he said: i will never touch the sourcecode nor the scriptfiles - and today.... he's writing ump files, ufo files and touches c code - let's see what the time brings us

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Changing the weapons you get in multiplayer
« Reply #7 on: May 19, 2008, 04:13:42 pm »
I said I wouldn't compile the source because back then you still needed cygwin to do so on Windows. Nowadays C::B does the job nicely and painlessly, so now I can mess with the code.



'Course, I do get flak from mattn because I can't be arsed to read the coding guidelines.

Offline BAM

  • Rookie
  • ***
  • Posts: 79
    • View Profile
Re: Changing the weapons you get in multiplayer
« Reply #8 on: May 19, 2008, 09:42:34 pm »
The multiplayer equipment I believe is the second-to-last section of the file (equipment.ufo). If not, somewhere near the end.

Offline Doctor J

  • Squad Leader
  • ****
  • Posts: 265
    • View Profile
Re: Changing the weapons you get in multiplayer
« Reply #9 on: May 24, 2008, 12:18:40 pm »
What's in equipment.ufo doesn't seem to relate to what i get when i start the game.  For instance, the script clearly states that two drums of MG ammo should be available, but i get none when i go into multiplayer...

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Changing the weapons you get in multiplayer
« Reply #10 on: May 24, 2008, 02:09:36 pm »
Make sure you got the right list. There's one for multiplayer, and then there's another one for auto-generating a team.

Offline BAM

  • Rookie
  • ***
  • Posts: 79
    • View Profile
Re: Changing the weapons you get in multiplayer
« Reply #11 on: May 24, 2008, 03:21:07 pm »
First off, make sure it isn't equipment_missions.ufo, but equipment.ufo.

At about the middle of the file is where it is, see attachment. Also, make sure that you have atleast double the ammo then the weapon its self, as it automatically consumes one at the equip screen (0 ammo = empty gun).

[attachment deleted by admin]

Offline shevegen

  • Squad Leader
  • ****
  • Posts: 224
    • View Profile
Re: Changing the weapons you get in multiplayer
« Reply #12 on: June 08, 2008, 02:50:34 pm »
What could be nice to have - one day ;) - is a very SIMPLE in-game editor for such stuff.
I guess the basic options are all already there:

- typing stuff in an input field
- loading a file
- viewing text

but i agree, a simple text file is really easy enough to edit. maybe some people dont know how to
work with simple text files anymore :)))

Offline Doctor J

  • Squad Leader
  • ****
  • Posts: 265
    • View Profile
Re: Changing the weapons you get in multiplayer
« Reply #13 on: June 15, 2008, 12:32:25 am »
No, it's not that editing text is hard.  The hard part is knowing which line to edit and what value to put in that line.  Note how many replies it took [and finally a picture] to nail down which section of relevant file really applied to the question at hand.  Again, this whole thread would be unnecessary if the script was commented.  This is something that a special purpose editor wouldn't really be helpful for - or to put it another way, to make such an editor really helpful would require that the editor know about every value in every line.  This is just not gonna happen, especially since it would have to be rewritten every time the ufo files got extended/repurposed.

Offline BAM

  • Rookie
  • ***
  • Posts: 79
    • View Profile
Re: Changing the weapons you get in multiplayer
« Reply #14 on: June 16, 2008, 02:10:08 am »
And just a note for disappearing ammo: weapons automatically consume one ammo, so make sure to have extra clips.