Posted: Wed May 26, 2021 8:50 am Post subject:
Yuri Concept Power Plant Files Don't Match ?
This is very confusing because this building is meant as a replacement using the game's original art code, but most of the files don't match the original files, so how are you supposed to know which is which if the downloaded files don't have the same names as those in the game ?
FILES IN THE DOWNLOAD
yapowr
yapowrmk
yapowr_a
yapowr_b
yapowr_c
ygpowr
ygpowrmk
ygpowr_a
ygpowr_b
ygpowr_c
Also, when I open each file in SHP Builder, it doesn't show me which are the damaged files.
I'm using this building as the equivalent of the Soviet Nuclear Reactor, so I'm not replacing the Yuri power plant I'm adding it as an advanced power plant and renamed it YBAPOWR.
The download files go from A to C and has other files that start with YG like ygpowr, but the game's art files are A, B, AB, BD, CD, DD, DM, DMB and DMC.
Where can I download these missing files and if they are not missing, and it's just a naming mistake, what files correspond to the ones in the download ?
That code was obviously not intended for the concept bio reactor you intend to ise.
It was for nlspeed's Noosphere Tether from another thread.
The code I put there was code I wrote for that thing and was having issues with.
That thing was actually a mini-bio reactor nlspeed and I were having trouble with years ago, and can be downloaded from YRArg (http://www.yrargentina.com/old/index.php?page=shps/shpsb2).
What made me ask about something completely different and unrelated to that topic I'll never be able to tell you because I completely forgot about that.
Writing art code for a building is straight-forward.
Let me walk you through an art.ini section.
[YAPOWR] ;;this is the value of Image=
;;Image is a flag/tag/key you can set manually in rules.ini, and it points to the thing's art.ini section.
;;If Image= is set in art.ini, then it'll point to which file the game should use for that animation (or at the very least point to the art.ini section with that name).
Cameo= ;;self-explanatory
Foundation= ;;self-explanatory
Buildup= ;;it's Buildup and not BuildUp. You need this to sell the thing
NewTheater= ;;let's not overcomplicate matters and set this to yes.
;;Else chk ModEnc.
ActivAnim=
IdleAnim=
;;Yeah, no. Ain't explaining these either. ModEnc exists for a reason.
All you had to do was copy-paste the YAPOWR in art.ini, rename to something else if you don't want to change the original building graphics and want to add it as something new, and then rename the new graphics as appropriate.
If you go that approach, don't forget to list the Active and Idle animations under [Animations].
It is really not that hard. _________________ One and only developer of the Command & Conquer Dune "C&C D" mod.
m7 wrote:
I tend to release things I create so that assets are never lost to hard drive problems, accidental deletion, or me having to pretend to care about rippers taking things from my project when it is done.
I never used the code, I just saw that it had different names and thought that it belonged to the reaktor since both of them have the word BIO in them.
And yes I can read, [though members of my family are still debating that topic] my question was which files are the damage files since the original art code has more files names than the files in the download ?
In other words Just as an example, if the original files contain text that end in AD, BD & CD then I take it that 'D' are the damage files but if the download doesn't have any files ending in 'D' how is anyone to know what are the damage files ?
Especially when there are no files in the download that end with double letters, anyone would think that there are missing files.
I understand these because they are in the code
yapowr
yapowrmk
yapowr_a
yapowr_b
yapowr_c
I dont understand what these are because they are not in the original code
ygpowr
ygpowrmk
ygpowr_a
ygpowr_b
ygpowr_c
I dont understand this part of the code because there are no files in the download labeled as such and there is a forth file in the, code DD and the download contains no file ending in D.
YAPOWR_AD
YAPOWR_BD
YAPOWR_CD
YAPOWR_DD
[YAPOWRDM]
[YAPOWRDMB]
[YAPOWRDMC]
Hope now that you can understand why I find this confusing. QUICK_EDIT
Look at the original [YAPOWR_AD], do you see an image tag? If you understand what Image= does, and you should it's very simple, my father can understand it and he is a great man, great man, what my father gave me more than anything else is great tutoring and a great brain, frankly. You know, my father's brother was a top person at MIT, went to MIT, graduated from MIT, was a teacher at MIT, a professor at MIT, a great engineer. I mean, you know, I have very good genes. You too should have at least ok genes, I mean, you know, enough to understand you don't need another file just to make a damaged AD. I just see that you are having - well you're having trouble, a conflict really with how the NewTheater= tag works, but that's ok, sometimes you need conflict in order to come up with a solution. Through weakness, oftentimes, you can't make the right sort of settlement, so I'm aggressive, but I also get things done, and in the end, everybody likes me, and everybody, ok not the Dems, but most everybody will like you if you just ask - just ask, you know, ModEnc, "what does NewTheater do?", and don't get yourself down because everybody has their detractors. Some people say arrogance, or whatever they may say. I only have one thing in mind, and that's doing a great job for PPM. _________________ "Don't beg for things; Do it yourself or you'll never get anything." QUICK_EDIT
You have clearly never actually gone through the game files with XCC Mixer or bothered to open them and analyse them with SHP Builder.
Let's go through this piece by piece, shall we?
You're confused about where the damage animations are. OK, fair enough.
Have you ever opened those files with SHP Builder or viewed them with XCC Mixer?
Because if you did you would not be asking these questions.
And even if you didn't, it's not that hard to recognize things from the code.
What do you do? You go and chk those animations.
What do you see?
Code:
; Power plant active animation
[YAPOWR_A]
Image=YAPOWR_A
Normalized=yes
NewTheater=yes
Layer=ground
Start=1
LoopStart=1
LoopEnd=8
LoopCount=-1
Rate=220
DetailLevel=2
Shadow=yes
; Power plant active animation
[YAPOWR_AD]
Image=YAPOWR_A
Normalized=yes
;NewTheater=yes
Layer=ground
Start=9
LoopStart=9
LoopEnd=16
LoopCount=-1
Rate=220
DetailLevel=2
Shadow=yes
You notice anything? No?
Image=YAPOWR_A means the animation YAPOWR_A will use the file YAPOWR_A.shp for arctic/snow IFNewTheater=yes, else YAPOWR_A.shp will be used for all theaters.
Now let's chk the damage animation.
Image=YAPOWR_A
Start=9
LoopStart=9
LoopEnd=16
LoopCount=-1
This means the Bio Reactor Damaged Active Animation is in the file YAPOWR_A.shp, starting frame 9 (SHP Builder displays it as frame 10 because it's using 1-based rather than 0-based counting, unlike everything else in the game and other editors), ends the animation at frame 16, then starts the Actual Animation Loop at frame 9, plays until it reaches frame 16, goes back to frame 9, and repeats on an endless loop because of negative ("infinite" in this case) LoopCount.
Where and how do you find this animation in the files? You open XCC Mixer, hit Ctrl+F then type YAPOWR_A.shp in the search box.
Or type in Y*POWR* (with the *) to find all Bio Reactor animations.
Note: this only works if XCC Mixer can find your RA2YR install from the system registry.
Notice how building SHPs tend to come with 6 frames, or at minimum 4.
The first frame is the regular, non-damaged frame. The second frame is the damage frame. The third is either the damage frame, again, or the garrisoned frame for civilian buildings. Assuming the SHP file has 6 frames.
If it does, frames 4 through 6 are the shadows. Frame 4 is shadow for frame 1, frame 5 is shadow for frame 2, etc.
If the SHP file only has 4 frames, then frame 3 is shadow for frame 1, frame 4 is shadow for frame 2. _________________ One and only developer of the Command & Conquer Dune "C&C D" mod.
m7 wrote:
I tend to release things I create so that assets are never lost to hard drive problems, accidental deletion, or me having to pretend to care about rippers taking things from my project when it is done.
Last edited by TAK02 on Tue Jun 22, 2021 8:40 am; edited 1 time in total QUICK_EDIT
Notice how building SHPs tend to come with 6 frames, or at minimum 4.
The first frame is the regular, non-damaged frame. The second frame is the damage frame. The third is either the damage frame, again, or the garrisoned frame for civilian buildings. Assuming the SHP file has 6 frames.
If it does, frames 4 through 6 are the shadows. Frame 4 is shadow for frame 1, frame 5 is shadow for frame 2, etc.
If the SHP file only has 4 frames, then frame 3 is shadow for frame 1, frame 4 is shadow for frame 2.
Could also be 8 frames iirc, the Battle Bunker in YR has normal - normal damaged - garrison - garrison damaged - shadows. QUICK_EDIT
I think the Battle Bunker is a step too far for our young... disciple. _________________ One and only developer of the Command & Conquer Dune "C&C D" mod.
m7 wrote:
I tend to release things I create so that assets are never lost to hard drive problems, accidental deletion, or me having to pretend to care about rippers taking things from my project when it is done.
I never used the code, I just saw that it had different names and thought that it belonged to the reaktor since both of them have the word BIO in them.
And yes I can read, [though members of my family are still debating that topic] my question was which files are the damage files since the original art code has more files names than the files in the download ?
In other words Just as an example, if the original files contain text that end in AD, BD & CD then I take it that 'D' are the damage files but if the download doesn't have any files ending in 'D' how is anyone to know what are the damage files ?
Especially when there are no files in the download that end with double letters, anyone would think that there are missing files.
I understand these because they are in the code
yapowr
yapowrmk
yapowr_a
yapowr_b
yapowr_c
I dont understand what these are because they are not in the original code
ygpowr
ygpowrmk
ygpowr_a
ygpowr_b
ygpowr_c
I dont understand this part of the code because there are no files in the download labeled as such and there is a forth file in the, code DD and the download contains no file ending in D.
YAPOWR_AD
YAPOWR_BD
YAPOWR_CD
YAPOWR_DD
[YAPOWRDM]
[YAPOWRDMB]
[YAPOWRDMC]
Hope now that you can understand why I find this confusing. QUICK_EDIT
You have clearly never actually gone through the game files with XCC Mixer or bothered to open them and analyse them with SHP Builder.
Let's go through this piece by piece, shall we?
You're confused about where the damage animations are. OK, fair enough.
Have you ever opened those files with SHP Builder or viewed them with XCC Mixer?
Because if you did you would not be asking these questions.
And even if you didn't, it's not that hard to recognize things from the code.
What do you do? You go and chk those animations.
What do you see?
Code:
; Power plant active animation
[YAPOWR_A]
Image=YAPOWR_A
Normalized=yes
NewTheater=yes
Layer=ground
Start=1
LoopStart=1
LoopEnd=8
LoopCount=-1
Rate=220
DetailLevel=2
Shadow=yes
; Power plant active animation
[YAPOWR_AD]
Image=YAPOWR_A
Normalized=yes
;NewTheater=yes
Layer=ground
Start=9
LoopStart=9
LoopEnd=16
LoopCount=-1
Rate=220
DetailLevel=2
Shadow=yes
You notice anything? No?
Image=YAPOWR_A means the animation YAPOWR_A will use the file YAPOWR_A.shp for arctic/snow IFNewTheater=yes, else YAPOWR_A.shp will be used for all theaters.
Now let's chk the damage animation.
Image=YAPOWR_A
Start=9
LoopStart=9
LoopEnd=16
LoopCount=-1
This means the Bio Reactor Damaged Active Animation is in the file YAPOWR_A.shp, starting frame 9 (SHP Builder displays it as frame 10 because it's using 1-based rather than 0-based counting, unlike everything else in the game and other editors), ends the animation at frame 16, then starts the Actual Animation Loop at frame 9, plays until it reaches frame 16, goes back to frame 9, and repeats on an endless loop because of negative ("infinite" in this case) LoopCount.
Where and how do you find this animation in the files? You open XCC Mixer, hit Ctrl+F then type YAPOWR_A.shp in the search box.
Or type in Y*POWR* (with the *) to find all Bio Reactor animations.
Note: this only works if XCC Mixer can find your RA2YR install from the system registry.
Notice how building SHPs tend to come with 6 frames, or at minimum 4.
The first frame is the regular, non-damaged frame. The second frame is the damage frame. The third is either the damage frame, again, or the garrisoned frame for civilian buildings. Assuming the SHP file has 6 frames.
If it does, frames 4 through 6 are the shadows. Frame 4 is shadow for frame 1, frame 5 is shadow for frame 2, etc.
If the SHP file only has 4 frames, then frame 3 is shadow for frame 1, frame 4 is shadow for frame 2. _________________ One and only developer of the Command & Conquer Dune "C&C D" mod.
m7 wrote:
I tend to release things I create so that assets are never lost to hard drive problems, accidental deletion, or me having to pretend to care about rippers taking things from my project when it is done.
Last edited by TAK02 on Tue Jun 22, 2021 8:40 am; edited 1 time in total QUICK_EDIT
I have opened SHP builder and XXC, but I have never seen what you're describing.
I opened SHP builder for the new yuri bio and this is what it shows.
I opened every file and some shows it with snow or without but none shows the damaged version.
I also went through all the mix files with xxc, typed Y*POWR* and nothing comes up.
I did manage to get it into the game and it builds up and it gets damaged and blows up but its missing the glass bulbs.
Though the original download says
You can straight away replace the old reactor without any .INI coding as this has the same amount of frames how can that be if I copy the code from the original reaktor and the glass is still missing even though all 10 files from the download are in the MIX file.
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