Posted: Sun Jun 07, 2009 12:00 pm Post subject:
Making Hospitals Buildable?
Hey
I'm rather new at modding in Red Alert. I'm attempting to make a version of the hospital that is buildable by the Allies and I'm using TibEd v1.64 to do all this incase that information is needed.
I've basically duplicated the Tech Hospital from the Rules.ini and changed its settings so that it now looks something like this in the manual view in TibEd;
I then gave CAHOSP in the Art.ini the cameo I made for it and set the remapable setting to Yes because apparently its meant to be set to that to allow parts of it to change to your teams colour. So it now in the manual view in TibEd looks like;
Problem I'm having is that when I test this in game the cameo shows fine and I can build and place the hospital fine but I cannot seem to sell it. Thanks for any help. QUICK_EDIT
Hmm bugger I was hoping I wouldn't have to get into creating animations. Is there any reason why the origional buildup animation for the CAHOSP can't be used? The hospital gets created alright with the CAHOSPs buildup animation and I read that the reverse of the buildup animation is just whats used when the buildings are sold? QUICK_EDIT
Nope... Hasn't worked... But its not even showing now... Well the whole hospital is invisible for a couple of seconds and then only its helipad and flag become visible.
Do the buildup animations have to go in anywhere specific by the way? As I just placed it into isogen.mix. QUICK_EDIT
Never ever put stuff in the original mix files, make an expand(md)##.mix instead. Its much easier to troubleshoot when you know you don't have tainted original mix files to worry about. BTW, for testing you can have .shp files directly in the RA2 directory. QUICK_EDIT
Alright thanks for that Blade and Allied General. Although I had figured about all that Allied General except your last line. However its still not working. I can build, use and sell the hospital like I should be able to but its invisible still (except the flag and helipad).
Heres the code I have in the Rules file;
Code:
[BuildingTypes]
304=GAHOSP
[Animations]
964=HOSPMK ;Added because noticed other buildings also have thier buildup animations listed here.
I've made a mix file called ecache01.mix and inside this is hospicon.shp along with an icon for another unit. I've made another mix file called expand01.mix and inside this is hospmk.shp.
Any ideas as to whats goin on? Heres a screenshot;
is your shp file of the hospital called g[/]ahosp.shp?
or do you use untouched [b]cahosp.shp?
if so just extract cahosp.shp with xcc mixer and rename it to gahosp.shp put that one in your expand01.mix or simply in your RA2 folder for testing _________________ just a simple logo by bricks @ raminator, on Flickr QUICK_EDIT
Nope neither approach works... Allied Genearal your approach of just using the CAHOSP art entry (with buildup changed) as the image for the GAHOSP rules entry does make the Hospital show up but its not sellable?
Raminator I've just tried yours. Don't know why I didn't try that before as I found I had to do exactly that in order to make an churchill submarine using the typhoon as a template. Unfortunately that hasn't worked for this though and it still shows invisible but is sellable.
Dark Templar I am trying all these suggestions before posting.
Sorry Allied General when I say it wasn't sellable I mean when I tried to sell the hospital I'm being shown the "can't sell" cursor and then clicking on the hospital does nothing. And vice versa.
No I stupidly wasn't testing it on snow maps and I havn't tried setting NewTheatre to No.
But have just tested your way (using the CAHOSP art entry for the GAHOSP rules entry) on both snow and temperate maps with both settings for NewTheatre. It doesn't appear like the buildup animation is showing and I get a "can't sell" cursor but the hospital is visible.
I've also just tested Raminators way (having a GAHOSP art entry for the GAHOSP rules entry and extracting cahosp.shp and placing it in my expand01.mix as gahosp.shp) on both snow and temperate maps and with both settings for NewTheatre. Now on both snow and temperate maps the hospital is always invisible (except for the flag and helipad) but now only on the temperate maps am I being shown the "can't sell" cursor.
Would anyone mind being sent the files I have for it so far? Would be easier to find out what I've done wrong. QUICK_EDIT
[GAHOSP];copypasted the good one on top of it
UIName=Name:CAHOSP
Name=Old Civilian Hospital
Image=GAHOSP
TechLevel=1
Strength=800
Insignificant=yes
Nominal=yes
Cost=500
Prerequesite=GACONST
Owner=Alliance
Sight=6
Points=5
Armor=concrete
;Hospital=yes ;gs old TS way
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=6
DebrisAnim=Dbris3sm,Dbris4lg,Dbris4sm,Dbris6sm,Dbris7lg,Dbris7sm,Dbris8sm,Dbris9lg,Dbris10lg,Dbris10sm
DamageParticleSystems=SmallGreySSys,BigGreySmokeSys
Capturable=yes
CaptureEvaEvent= EVA_HospitalCaptured ;Eva (and therefore 3way split) voice to use when captured
;NeedsEngineer=no
;Unsellable=no
;LeaveRubble=yes
InfantryGainSelfHeal=1 ; one 'unit' of SelfHealInfantryAmount per SelfHealInfantryFrames
RadarVisible=yes;gs put on radar even if insignificant and unowned (insignificant and owned is a UC building)
extract cahosp*.shp and cthosp*.shp from the mix files and rename them to gahosp*.shp to gghosp*.shp
add the anims to the anim list and you´re done
everything i´ve done have some copypasting and renaming...took me about a minute to make this >_>
couldnt he just add Sellable=yes to make it sellable? or UnSellable=no, I know one of these tags exist not sure which one though.
Unsellable is valid. But you can only sell the structure if it has a buildup animation. Setting Unsellable=no or whatever on it will have no effect. QUICK_EDIT
Got it working now thanks alot Raminator and everyone else.
I havn't included these in mine as its working without it but out of interest what is CaptureEvaEvent and InfantryGainSelfHeal I can't find them used in any other buildings/infantry/vehicals/aircrafts or find then listed in the part of the ini that has comments explaining the various settings or find them mentioned anywhere else on these forums. QUICK_EDIT
Anyother hopefully last question on this hospital;
I've searched the forum and looked through some buildings that do have this but nothing jumps out at me saying here it is or whatever. How do you allow a building to place rally points? So that I can have the hospital have a rally point for the troops to move to once healed just like the service depots have. QUICK_EDIT
Alright I think I see it needs to be listed by another unit or structure as a prequisite? And thats why the Allied Service Depot can have a rally point set even though it doesn't actually create any units its given a rally point because its creation allows you to build the Mobile Construction Yards? QUICK_EDIT
Joined: 19 May 2008 Location: Scotland, starting a Revolution Cameo: metricon. Posts:???
Posted: Wed Jun 10, 2009 6:46 pm Post subject:
I belive it can have rally points so units being repaired can be redirected (when repaired) to a chosen location. (henc why the battle lab doesnt have rally points) _________________ Creator of TS:BoB and some other things that might be good when finnished. QUICK_EDIT
Alright I think I see it needs to be listed by another unit or structure as a prequisite? And thats why the Allied Service Depot can have a rally point set even though it doesn't actually create any units its given a rally point because its creation allows you to build the Mobile Construction Yards?
The logic was added later on to the Depots. Has nothing to do with prerequisites. QUICK_EDIT
Got it working now thanks alot Raminator and everyone else.
I havn't included these in mine as its working without it but out of interest what is CaptureEvaEvent and InfantryGainSelfHeal I can't find them used in any other buildings/infantry/vehicals/aircrafts or find then listed in the part of the ini that has comments explaining the various settings or find them mentioned anywhere else on these forums.
YR tags, 99% of the community mods YR now. _________________ 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