Introduce your project and write about your work.

Moderator: PPS-Leaders

Post Reply
Noxonian Pryllgnothor
Posts: 1
Joined: Fri Mar 30, 2012 11:48 am


Post by mpalic » Fri May 18, 2012 1:56 pm

I have made a new Weapon called Spacebomb. I've just modified the existing files "" and "" in the branch "Spacebomb".
In this branch SimpleRocket does not have its original function anymore: The SimpleRocket files implement the new Spacebomb.

Before this branch can be merged, the SimpleRocket facilities have to be moved to new Spacebomb facilities and added as a new weapon in the weapon system. Also, the original SimpleRocket functionality has to be restored in the Spacebomb branch from trunk. :!:
For any questions feel free to leave a reply.


User avatar
Baron Vladimir Harkonnen
Posts: 810
Joined: Mon Oct 30, 2006 5:40 pm

Re: Spacebomb

Post by x3n » Sat May 19, 2012 12:01 pm

Hi Marko!

I'm looking forward to seeing your new weapon at the presentation!

In general it's not recommended to overwrite existing classes. You can copy your source code to a new file (for example and, replace SimpleRocket with SpaceBomb everywhere in your code, and revert the original files of simple rocket with SVN. But please make a backup before you start!

Also you should ask your assistants how to commit your code to SVN (or simply read the coding tutorial again) because I think you haven't committed yet. That's bad practice because you could lose your code if you don't commit regularly and we can't see what you're working on.

To add your new weapon to the weaponsystem, you have to modify data/levels/includes/weaponSettingsAssff.oxi (or any other file called weaponSettingsXXX.oxi, depending on which spaceship you want to modify). Search for SimpleRocketFire in the xml code and replace it with your weapon fire.
Fabian 'x3n' Landau, Orxonox developer

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests