:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: 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 Sep 21, 2017 3:58 pm
All times are UTC + 0
 Forum index » Modding Central » OpenRA Editing Forums
Adding new features(tags) to OpenRA
Moderators: Global Moderators, OpenRA Moderators
Post new topic   Reply to topic Page 1 of 1 [9 Posts] View previous topic :: View next topic
Author Message
¥R_M0dd€r
Cyborg Soldier


Joined: 03 Jan 2011

PostPosted: Tue Aug 05, 2014 3:59 pm    Post subject:   Adding new features(tags) to OpenRA Reply with quote

I want to add a new tag to Warheads called Stun, for testing and education purposes.

Code:
BarrelExplode:
   Warhead:
      Stun: 300
      Damage: 500
      Spread: 426
      ...


The units(I guess its called "Actor" in OpenRA?) hit by this warhead are unable to move for 300 frames(or whatever measurement system OpenRA uses).

I am not looking for someone to write the code for me.

I was wondering if there are tutorials around explaning the source code. An API? Also some tips on which classes and interfaces I should look at in order to implement this.
How can I make the parser read and understand the Stun tag?

Back to top
View user's profile Send private message
Darkstorm
Commander


Joined: 20 Jan 2008
Location: Unknown

PostPosted: Tue Aug 05, 2014 7:22 pm    Post subject: Reply with quote

It's C# as I understand. I know some java and have looked at the source code a bit, but you're going to need more than a simple tutorial.
_________________

Back to top
View user's profile Send private message
deniz1a
Civilian


Joined: 05 Aug 2014

PostPosted: Tue Aug 05, 2014 7:49 pm    Post subject: Reply with quote

Check out the development topics at https://github.com/OpenRA/OpenRA/wiki

Back to top
View user's profile Send private message
luxycomplex
Cyborg Soldier


Joined: 03 Nov 2012

PostPosted: Tue Aug 05, 2014 11:04 pm    Post subject:   Welcome to the party Reply with quote

"Welcome! Thanks for joining us. here at ppmsite, deniz1a..."

Back to top
View user's profile Send private message
Glukv48
Cyborg Firebomber


Joined: 11 Nov 2012
Location: Russia, Krasnodar.

PostPosted: Wed Aug 06, 2014 1:29 am    Post subject: Reply with quote

It reminds me of  AttachEffect

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


Joined: 15 Jun 2012
Location: Germany

PostPosted: Sat Aug 09, 2014 4:01 am    Post subject: Reply with quote

You can create new warheads with custom effects at https://github.com/OpenRA/OpenRA/tree/bleed/OpenRA.Mods.RA/Warheads since the recent refactor.

The IDisable interface which is currently used for powering down buildings may be a starting point https://github.com/OpenRA/OpenRA/blob/bleed/OpenRA.Game/Traits/TraitsInterfaces.cs#L115 that needs to be generalized further or the ISpeedModifier https://github.com/OpenRA/OpenRA/blob/bleed/OpenRA.Game/Traits/TraitsInterfaces.cs#L159 assuming you just set movement speed to 0 while stunned to disable unit movement temporarily.

Anyway, the first thing to do is file a feature request at https://github.com/OpenRA/OpenRA/issues/new so we don't lose an overview and reach more interested developers.

Back to top
View user's profile Send private message Visit poster's website
Allen
Stealth Laser Trooper


Joined: 13 Feb 2007
Location: C:\Westwood\ TechLevel=12

PostPosted: Sat Aug 09, 2014 4:53 am    Post subject: Reply with quote

Matthias M.

Not much of a point of ¥R_M0dd€r feature request as the OpenRA team is going to need to do this anyway for the TibSun port to OpenRA. What ¥R_M0dd€r is trying to is make the TibSun EMP effect that shuts down tanks and cycborgs.
_________________


C&C in RA-1 Get it here
http://www.ppmsite.com/forum/viewtopic.php?t=30101 100+ Single Player Missions! Now playable on CnCNet 5!

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


Joined: 15 Jun 2012
Location: Germany

PostPosted: Sat Aug 09, 2014 4:54 am    Post subject: Reply with quote

Have a look at https://github.com/OpenRA/OpenRA/issues/2641 then as that is already work in progress.

Back to top
View user's profile Send private message Visit poster's website
alieen
Civilian


Joined: 04 Dec 2014

PostPosted: Thu Dec 04, 2014 5:15 am    Post subject: Reply with quote

Welcome! Thanks for joining us. here at ppmsite, deniz1a..."
_________________
emma

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [9 Posts] View previous topic :: View next topic
 Forum index » Modding Central » OpenRA Editing Forums
Jump to:  
Quick Reply
Username:


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


 
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.1101s ][ Queries: 12 (0.0048s) ][ Debug on ]