Posted: Wed May 19, 2010 6:33 pm Post subject:
.shp turrets
Was wondering if its possible to make .shp turrets for buildings? I tried several differnet ways, but 8 times got IE and other 2 no turret would show. Is this even possible? Looks like WW tried it on a couple buildings, but then commented the tags out and made them .vxl turrets. I'm stumped. _________________
The enemy shall be injected with toxic poison - Venom QUICK_EDIT
This is the last setup that I tried, resulted in IE
PATRIOT, PATRIOTMK, and PATRIOT_A are in an ecache.mix file
And sorry, this should have been put in the RA2 Editing Forum.
Na, It still wont work. Still get IE when loading but if I comment out the Turret=yes it dont IE. I made a new turret file PATRIOT_A with 32 frames and saved as BuildingAnimation. Here's what I got going on now.
From your code, you're obviously doing this for RA2/YR, but if you happen to have TS, you could also refer to the coding for GDI's Component Tower defense structure, in addition to what everyone else here is suggesting, since that TS structure uses SHP turrets for its upgrades. The code/tags would still be valid for RA2/YR. QUICK_EDIT
@Remus, yes I have TS, but those are upgrades not Turrets, but I guess the codes are somewhat similar, just turrets arent listed on the main art code like the upgrades are.
But anyway, I have it sorta working now, just dont know why ShpBuilder refuses to properly make/save my shp's. I open shp builder, import image, choose RA2, BuildingAnimation, new shp, unittem.pal, blah,blah and then save it and close. Now when I reopen it it says it's a Unit Type .shp and has TS unittem.pal with shodows on, even though I turned shadows off before saving. I dont know it's pissing me off like crazy! _________________
The enemy shall be injected with toxic poison - Venom QUICK_EDIT
Quick question, The 32 frames needed for this, does it need to be 16 normal (Facings) frames and 16 shadow frames, or 32 (Facings) normal and no shadow? _________________
The enemy shall be injected with toxic poison - Venom QUICK_EDIT
Quick question, The 32 frames needed for this, does it need to be 16 normal (Facings) frames and 16 shadow frames, or 32 (Facings) normal and no shadow?
32 normal frames and 32 shadow frames, 64 frames in total. QUICK_EDIT
32 frames! Mig Eater has shown already the correct code, so listen to people with more experience like him.
Especially since ArvinCool's code hasn't only one but several mistakes.
The game counts from 0.
It plays the defined start frame up to the defined end frame minus one.
0-32 means it plays frames 0 - 31. 32 is not played anymore. 0-31 are already 32 frames.
Like every turret (also voxel) and voxel unit, they can have ingame only 32 facings. (vxl are rendered in only 32 facings too)
32 facings means of course that the turret needs 32 frames to have the full rotation. That's why it also needs additional 32 frames for the shadow.
Thus the whole SHP needs 32 normal frames + 32 shadow frames which makes a total of 64 frames. _________________ SHP Artist of Twisted Insurrection: Nod buildings
yea, I had it set up like Mig showed, but it wasnt working so I was trying all sorts of different combo's. That was just the last one I tried thats all. I only had 32 frames instead of the full 64 thus why it wasnt working correctly. It's knockin aircraft out of the sky beautifully now. Thanks for everyones help again your support is really appreciative! _________________
The enemy shall be injected with toxic poison - Venom QUICK_EDIT
Now I have the opposite problem. I copied and pasted all the code from the previous SHP turret, how ever now the turret is visible but the base of it is not.
All the names in ini have been changed and the graphics are in a ecache.mix.
By using the prefix NA --->NAFLMT it requires it to have NewTheater=yes and also all other theater prefixes as well, like NTFLMT,NUFLMT, so I would just rename it to NGFLMT, 'G representing Generic" QUICK_EDIT
In-case you didn't notice, tags are Case Sensitive, meaning the 'S' should be capitalized in order for the game to recognize the tag. The 'S' is not capitalized in his code which is what I was emphasizing by bolding the 'S' in Shadow. Shadows also wont work if your SHP doesn't have any shadow frames (LoL). QUICK_EDIT
Yes, I didn't notice that the difference between your tag and his had any significance... How ever I was/am half asleep and did wonder what was the big idea of the bolded s. Maybe make instructions fool proof next times?
I do know about the shadow frames and INI's being case sensitive but not to each of the tags used.. 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