General > User modifications
Unbuildable squares
Quizer:
I've been looking for the parameters for those unbuildable squares, for example the ones that control their occurrence rate or their max number, or the function that creates them when you build a new base. Where are these things hidden?
H-Hour:
Not sure, but they're probably not in the .ufo files if that's where you're looking. I'd guess they're in the source code, somewhere in the campaign cgame (/src/client/cgame/campaign).
geever:
--- Quote from: Quizer on January 20, 2013, 05:55:55 pm ---I've been looking for the parameters for those unbuildable squares, for example the ones that control their occurrence rate or their max number, or the function that creates them when you build a new base. Where are these things hidden?
--- End quote ---
If you haven't found them, you didn't look for them. :P
They are not hidden: https://github.com/ufoai/ufoai/blob/master/src/client/cgame/campaign/cp_base.h#L52
Min and max are defined, exact number is random within the boundaries with an exception of first base which don't have them.
-geever
Quizer:
Ah, so it wouldn't be trivial to modify this stuff? Too bad... I only need any one solution that makes it possible / easier to get a clean base - I know it's possible to randomly roll up a base without any rocky squares, but the chance seems to be very, very low.
@geever: I have been looking in the .ufo files, as H-Hour assumed. So these things can't be changed via scripts yet?
Looking at that link, I see that MIN_BLOCKEDFIELDS is set to 1 - was this changed recently (as in, the last two weeks or so)? I remember getting a base without any rocky squares once or twice. I still have a savegame where I have a second clean base, and that was before I started tinkering with script files and stuff.
geever:
--- Quote from: Quizer on January 20, 2013, 06:19:57 pm ---I only need any one solution that makes it possible / easier to get a clean base
--- End quote ---
I always wondered: why? It is a game element, like research tree or the fact your soldiers can't fly...
--- Quote from: Quizer on January 20, 2013, 06:19:57 pm ---I know it's possible to randomly roll up a base without any rocky squares, but the chance seems to be very, very low.
--- End quote ---
Yeah, it is very low. As you see 1-4 blocked squares are placed. To have 0 you need to be very lucky as it is only possible if the location of the access lift and the only blocked square is the same, this case building overrides the block.
--- Quote from: Quizer on January 20, 2013, 06:19:57 pm ---@geever: I have been looking in the .ufo files, as H-Hour assumed. So these things can't be changed via scripts yet?
--- End quote ---
Yep, it needs changing the source code and recompiling.
--- Quote from: Quizer on January 20, 2013, 06:19:57 pm ---Looking at that link, I see that MIN_BLOCKEDFIELDS is set to 1 - was this changed recently (as in, the last two weeks or so)? I remember getting a base without any rocky squares once or twice. I still have a savegame where I have a second clean base, and that was before I started tinkering with script files and stuff.
--- End quote ---
No, see above.
-geever
Navigation
[0] Message Index
[#] Next page
Go to full version