:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::
Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Thu Aug 16, 2018 5:55 pm
All times are UTC + 0
 Forum index » Modding Central » OpenRA Editing Forums
How OpenRA engine handles FreeUnit.
Moderators: Global Moderators, OpenRA Moderators
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
Author Message
Palkia323
Pyro Sniper


Joined: 10 May 2008

PostPosted: Wed Aug 28, 2013 4:32 am    Post subject:   Reply with quote

Alright I'm sorry for this being a bit off topic but I have a question regarding TS/RA2 and I'm sure you've reproduced this portion of the engine.

How in the world does the Free Unit system work?
Any help would be greatly appreciated!
And phenomenal work on the port, guys and gals. Smile
_________________
Tore wrote:
Oh noes Nod32 must have found some GDI32 in the art.ini file!

3ds Topic
Clicky

Back to top
View user's profile Send private message
Renegade
Cyborg Artillery


Joined: 21 May 2006
Location: Hamburg, Germany

PostPosted: Wed Aug 28, 2013 4:58 pm    Post subject: Reply with quote

rulesmd.ini wrote:
FreeUnit = free unit to give this building [typically harvester with refinery] (def=none)

ModEnc wrote:
Specifies the VehicleType that should appear beside this BuildingType when it is placed after being constructed by the player (the unit comes free with the building).

Yeah, that was totally complicated enough to warrant going off topic for. Rolling Eyes
_________________
#RenProj on chat.freenode.net

Back to top
View user's profile Send private message Visit poster's website
Palkia323
Pyro Sniper


Joined: 10 May 2008

PostPosted: Wed Aug 28, 2013 5:42 pm    Post subject: Reply with quote

Sorry maybe I should have phrased my question better.

I was asking how does the engine actually handle it.
I know the effect and use of it, I'm just curios as to HOW.

EDIT:

Again sorry for going off topic.
I found the .cs file on the git so I'll look at that and figure it out.
_________________
Tore wrote:
Oh noes Nod32 must have found some GDI32 in the art.ini file!

3ds Topic
Clicky

Back to top
View user's profile Send private message
Matthias M.
Jumpjet Infantry


Joined: 15 Jun 2012
Location: Germany

PostPosted: Thu Aug 29, 2013 4:07 pm    Post subject: Reply with quote

Have a look at https://github.com/OpenRA/OpenRA/wiki/Traits it works very similiar we don't just restrict it to units only:


Code:
   FreeActor:
      # Player recives a unit for free once the building is placed. This also works for structures.
      # If you want more than one unit to appear copy this section and assign IDs like FreeActor@2, ...
      Actor:  # Type: String. Name of actor (use HARV if this trait is for refineries)
      InitialActivity:  # Type: String
      # What the unit should start doing. Warning: If this is not a harvester
      # it will break if you use FindResources.
      SpawnOffset: 0,0 # Type: int2. Offset relative to structure-center in 2D (e.g. 1, 2)
      Facing: 0 # Type: Int32. Which direction the unit should face.

Back to top
View user's profile Send private message Visit poster's website
Renegade
Cyborg Artillery


Joined: 21 May 2006
Location: Hamburg, Germany

PostPosted: Sat Nov 16, 2013 12:17 pm    Post subject: Reply with quote

Great.
The new context and thread title make my previous post look like I totally misunderstand the question. -_-
_________________
#RenProj on chat.freenode.net

Back to top
View user's profile Send private message Visit poster's website
Matthias M.
Jumpjet Infantry


Joined: 15 Jun 2012
Location: Germany

PostPosted: Sat Nov 16, 2013 1:32 pm    Post subject: Reply with quote

Yeah, nevermind. I asked banshee to move this topic here so the forum section does not start out completely empty. Smile

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
 Forum index » Modding Central » OpenRA Editing Forums
Jump to:  
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only one of the following words: Brotherhood, unity, peace! 

 
You can post new topics in this forum
You can 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


Powered by phpBB © phpBB Group

Wildcard SSL Certificates
[ Time: 0.1495s ][ Queries: 11 (0.0237s) ][ Debug on ]