Posted: Mon Sep 21, 2015 6:15 pm Post subject:
Invisible building
I added a new building to the building list in rules.ini and i used an existing unused building in the game.
GGSPOT and GGSPOTMK
It worked so i was happy etc and continued adding a new vehicle.
After i tested the game again for the vehicle i found out that the tower was invisible, but it was still working.
So i looked at my rules and art, but nothing changed.
So i changed the name to TOWER in the rules and art.
Nothing changed. Buildable, working but invisible.
So i extracted the files and changed the names to NASPOT and added them to expand01.
I renamed the tower to NASPOT, but still the same problem... Invisible...
I find it kinda strange because it was fully working.
It had a working building animation and was a visible building.
I used the pillbox rules and art to make this tower.
I can't find the problem
This is because you named it NASPOT and defined it as NewTheater=yes, so it will only show up in snow (arctic) maps. If you name it NGSPOT, it will show up in all theaters. Also, using Image= on something with the exact same name will confuse it as well and it won't show up. _________________ "Don't beg for things; Do it yourself or you'll never get anything." QUICK_EDIT
GGSPOT has an SHP for general theater, which is used when there is no special SHP for arctic, temperate or urban.
Thus it worked on all theaters
You now changed the name to NASPOT, which makes this only work for arctic (snow) maps. _________________ SHP Artist of Twisted Insurrection: Nod buildings
^^That makes no sense at all.
NSPOT is not the same as NGSPOT.
How should the game know which to use!?
[ID]'s in the ini and the files need to have the same name.
Since we don't know what you did before, we can't tell how and why it worked. Could have been pure luck, seeing how your logical reasoning works. _________________ SHP Artist of Twisted Insurrection: Nod buildings
I used same names before i replied in this post again
Im first trying things myself and then try things you guys post.
But i posted this cus of what 4stargeneral said:
''Also, using Image= on something with the exact same name will confuse it as well and it won't show up.''
I just started doing something and tried if it worked. Never made a mod or anything so is was just trying.I searched for tutorials etc, but most of the things work with rockpatch and i dont want to use that. After my armory worked, i made this tower. I used these steps:
Copied GAPILL in art and rules and renamed it GAPILL01
I added a secondary gun.
Changed the prerequisite and strength etc.
And changed GAPILL and GAPILLMK to GGSPOT and GGSPOTMK
It worked perfectly.
Then i added a dropship and the building became invisible.
So i set the techlevel to -1 and suddenly the allied players couldnt build pillboxes and the AI was building GAPILL01.
So i renamed it.
But nothing changed... Except for that players can build pillboxes again.
But there is one thing i noticed yesterday.
The building was invisible so i sold it and ended the game. But when it said DEFEATED i saw a frame of the animation...
and YES IM JUST TRYING MY LUCK. But thats why i am asking you guys if i cant get it fixed. To learn how to do it and how it works. QUICK_EDIT
What you did sounds very confusing to me and hard to follow where a possible bug/mistake could have been made.
Can you upload your art.ini and rules.ini? I think this would speed up the error finding process a lot. _________________ SHP Artist of Twisted Insurrection: Nod buildings
code wise NSPOT looks ok.
Image=NSPOT in art.ini is redundant, but shouldn't cause too big problems.
So if you have NSPOT.SHP and NSPOTMK.SHP inside your ecache*.mix, it should work and be visible ingame.
Of course only in RA2, not in YR. _________________ SHP Artist of Twisted Insurrection: Nod buildings
wait, wasn't there a difference how RA2 and YR load ecache and expand mix files? Like RA2 being unable to read one of them or something like that? _________________ SHP Artist of Twisted Insurrection: Nod buildings
I'm not sure what you are referring to. Which is RA2 unable to read?
"ecache" mixes are loaded only from the game's root. This is because the game loads "ecache"...".mix" files. Where anything could be between ecache and mix:
ecachelol.mix -> works
ecachekekkings.mix -> works
10ecache.mix -> doesn't work
The same for ecache mixes applies to "elocal" mixes.
For expand mixes this is different, they are loaded starting from expand99 to expand00.
Because their names are known before hand, these can exist inside other mix files.
Generally these expand mixes are loaded before the other mix files are loaded, hence why they are used for patches.
IIRC in TS there is a loop for ecache files similar to that of expand files, which is why there is an "ecache01.mix" file in tibsun.mix. _________________
I'm not sure. I thought YR introduced one of these files or changed something in the names. Like in RA2 only ecacheXX.mix files allowed while YR expands this to ecache*.mix or something like that.
I thought there is a difference which mixes RA2 and YR are able to read.
Just like old TS versions were unable to read ecacheXX.mix files, which were introduced with the FS patch. _________________ SHP Artist of Twisted Insurrection: Nod buildings
ecache*.mix is common for both RA2 and YR as of last versions of the game. ecache* includes ecacheXX also.
expandXX.mix is for RA2 only, expandmdXX.mix is for YR only.
If duplicate files are present in both ecache* and expandXX.mix, file from expandXX.mix is loaded for RA2,
likewise expandmdXX.mix for YR.
Tree files are different for RA2, it is picked up from ecache*.mix. Trees shouldn't be placed in expandXX
for RA2. While trees can be placed in expandmdXX.mix for YR. There could be other files like trees.
Also mix parsing differs for YR 1.000 and 1.001 versions, don't remember now. There is also precedence of
langmd.mix, Ares removes this restriction so that expandmdXX could be used instead of touching the original
mix files.
In TS, ecacheXX.mix can be placed inside expandXX.mix, while it cannot be done so with ecache*.mix in RA2/YR.
Also expandXX.mix files are not supposed to be inside other mix files. QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum