Getting started
Give GDI a medic
-
- Posts: 24
- Joined: Mon Sep 28, 2015 12:16 pm
Getting started
Ok, so I'm going to give modding another try.
To learn how I need to start simple. I'm thinking about giving GDI a medic in TD. How would I do that?
To learn how I need to start simple. I'm thinking about giving GDI a medic in TD. How would I do that?
- Murto the Ray
- Posts: 487
- Joined: Mon Nov 10, 2014 4:34 pm
The best way of starting out would be to have a look at something similar. Have a look at the RA Medic's definition.
What you want is probably almost the same as it. Have a look around the traits on the wiki when you aren't sure what a rule does. If you want to have a new look for your medic then you will need to create that yourself or copy another unit.
You can ask specific questions here, on IRC, and Discord if you need more help.
What you want is probably almost the same as it. Have a look around the traits on the wiki when you aren't sure what a rule does. If you want to have a new look for your medic then you will need to create that yourself or copy another unit.
You can ask specific questions here, on IRC, and Discord if you need more help.
-
- Posts: 24
- Joined: Mon Sep 28, 2015 12:16 pm
Thanx mate!
To learn this I'm thinking of importing units from RA to TD. So let's take a look at the medic. Is it enough to just copy and paste the RA Medic into the infantry yaml in the rules folder of TD? Or do I need to change stuff in other yaml-files as well?
e: game can't launch if I just change the infantry-yaml.
e2: I changed some other stuff as well to try and get the medic to work in TD. Now the game crashes when I press the infantry tab.
e3: It would be very useful to me if someone could explain step by step what you need to do to get one unit from RA to TD. That would mean a lot!
To learn this I'm thinking of importing units from RA to TD. So let's take a look at the medic. Is it enough to just copy and paste the RA Medic into the infantry yaml in the rules folder of TD? Or do I need to change stuff in other yaml-files as well?
e: game can't launch if I just change the infantry-yaml.
e2: I changed some other stuff as well to try and get the medic to work in TD. Now the game crashes when I press the infantry tab.
e3: It would be very useful to me if someone could explain step by step what you need to do to get one unit from RA to TD. That would mean a lot!
-
- Posts: 24
- Joined: Mon Sep 28, 2015 12:16 pm
- MustaphaTR
- Posts: 203
- Joined: Mon Aug 04, 2014 6:38 am
- Location: Kastamonu, Turkey
-
- Posts: 24
- Joined: Mon Sep 28, 2015 12:16 pm
Thanks! But I still can't find the medic.shp in the bits folder. Also which program would I use to change the palette?Inq wrote: ↑You'll need to convert the RA medic shp & cameo to td palette and add it to the TD bits folder.
or
Add an additional palette to the td mod and change the palette used of the medic.
It's not as simple as copy and paste from RA to TD.
-
- Posts: 24
- Joined: Mon Sep 28, 2015 12:16 pm
- Materianer
- Posts: 199
- Joined: Mon Jul 04, 2016 8:27 am
lol i dont know how to extract units from these mix files but here is a map with a TD-Mechanic included:ApornasPlanet wrote: ↑I'll give 10$ to whomever wrights an extensive tutorial/guide on this. I'll pay the money if I'm by following the guide is able to get the medic into TD with voice and all.
The guide need to detail everything.
You will recieve the money through paypall.
https://resource.openra.net/maps/13742/
Note rules maybe have to be updated because this map is old.
Not writing an extensive guide, but this is all you need. Including palette converted unit & icon. (No medical cursor)ApornasPlanet wrote: ↑I'll give 10$ to whomever wrights an extensive tutorial/guide on this. I'll pay the money if I'm by following the guide is able to get the medic into TD with voice and all.
The guide need to detail everything.
You will recieve the money through paypall.
The code posted below is for reference only - do not copy paste it
The shp's were extracted & converted using:
GIMP,
https://www.gimp.org/
XCC Mixer,
http://xhp.xwis.net/utilities/
SHP builder,
https://ppmforums.com/viewtopic.php?t=3 ... 8f30ff0357
Purple pal,
http://nyerguds.arsaneus-design.com/cncstuff/
cnc\rules\infantry.yaml
Code: Select all
MEDI:
Inherits: ^Soldier
Inherits@EXPERIENCE: ^GainsExperience
Valued:
Cost: 500
Tooltip:
Name: Medic
Buildable:
BuildPaletteOrder: 41
Prerequisites: anyhq, ~techlevel.medium
Queue: Infantry.GDI
Description: Heals nearby infantry.\n Unarmed
Mobile:
Speed: 48
Health:
HP: 5000
Passenger:
PipType: Yellow
Armament:
Weapon: Heal
Cursor: ability
OutsideRangeCursor: ability
TargetStances: Ally
ForceTargetStances: None
AttackFrontal:
WithInfantryBody:
StandSequences: stand
DefaultAttackSequence: heal
Voiced:
VoiceSet: MedicVoice
AutoTarget:
AutoTargetPriority@DEFAULT:
ValidTargets: Infantry
Code: Select all
medi:
stand:
Facings: 8
stand2:
Facings: 8
run:
Start: 8
Length: 6
Facings: 8
Tick: 100
heal:
Start: 56
Length: 58
Tick: 120
standup:
Start: 114
Length: 2
Facings: 8
idle1:
Start: 178
Length: 14
Tick: 120
idle2:
Start: 178
Length: 14
Tick: 120
die1:
Start: 193
Length: 7
die2:
Start: 201
Length: 8
die3:
Start: 209
Length: 8
die4:
Start: 217
Length: 12
die5:
Start: 229
Length: 18
die6:
Start: 193
Length: 7
die-crushed: e1rot
Start: 16
Length: 4
Tick: 1600
ZOffset: -511
prone-stand:
Start: 130
Stride: 4
Facings: 8
prone-run:
Start: 130
Length: 4
Facings: 8
Tick: 100
icon: mediicon
Code: Select all
Heal:
ReloadDelay: 80
Range: 4c0
Report: heal2.aud
ValidTargets: Infantry
Projectile: Bullet
Speed: 1c682
Warhead@1Dam: SpreadDamage
Spread: 213
Damage: -5000
ValidStances: Ally
ValidTargets: Infantry
DebugOverlayColor: 00FF00
Code: Select all
MedicVoice:
Voices:
Select: mrespon1,myessir1
Action: maffirm1,mmovout1
Die: nuyell1,nuyell4,nuyell5,nuyell6
Burned: yell1
Zapped: nuyell3
Poisoned: nuyell12
- Attachments
-
- TDMedic.zip
- Converted RA medic to TD
- (40.02 KiB) Downloaded 335 times
Last edited by Inq on Wed Feb 28, 2018 12:58 am, edited 1 time in total.
-
- Posts: 24
- Joined: Mon Sep 28, 2015 12:16 pm
You sir are a hero! However, the game encountered a fatal error and crashed so something must be wrong. Dunno what and I don't have enough knowledge to determine what's wrong.
The only difference I can see is that the pasted text, provided by you, is all in blue whilst the original text of the yaml is all in red. Does that matter?
But if this works I can replicate the procedure with other stuff and then finally learn the process of modding.
The only difference I can see is that the pasted text, provided by you, is all in blue whilst the original text of the yaml is all in red. Does that matter?
But if this works I can replicate the procedure with other stuff and then finally learn the process of modding.
Edit: If you copy & paste the text above it, it will be incorrect - see below for correct exampleApornasPlanet wrote: ↑You sir are a hero! However, the game encountered a fatal error and crashed so something must be wrong. Dunno what and I don't have enough knowledge to determine what's wrong.
The only difference I can see is that the pasted text, provided by you, is all in blue whilst the original text of the yaml is all in red. Does that matter?
But if this works I can replicate the procedure with other stuff and then finally learn the process of modding.
Alright I tested my own advice and found it faulty , yeah don't copy that code it changes up the layout (uses multiple spaces, insted of tabs)
Download this & replace the files and you can see how it should be layed out correctly.
Original post wrote: To find out why the game has crashed you should go to User/documents/OpenRA/Logs (on windows)
Look for the text file called exception-2018-02-28XXXXXXXXX or something similar.
It will tell you in there the crash issue.
(if you have lots of files in the logs folder delete them all & run the game again and it will make a fresh report, so its easier to find)
The colour of the text won't matter, as long as its formatted the same. Use notepad++ or something similar to edit the text files.
- Attachments
-
- TDMedicFixed.zip
- Corrected complete example
- (45.52 KiB) Downloaded 304 times