UFO:Alien Invasion
Development => Coding => Topic started by: Elpolodiablo 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.
-
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?
-
Every other time the only answer is "LOOK IN TEH UFO FILES"
I have and its not in any place that makes sence
-
It's in equipment.ufo. If that doesn't make sense to you, maybe you should get a new sense of sense.
-
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.
-
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.
-
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
-
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.
-
The multiplayer equipment I believe is the second-to-last section of the file (equipment.ufo). If not, somewhere near the end.
-
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...
-
Make sure you got the right list. There's one for multiplayer, and then there's another one for auto-generating a team.
-
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]
-
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 :)))
-
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.
-
And just a note for disappearing ammo: weapons automatically consume one ammo, so make sure to have extra clips.