Rocket-Ticket Questionthread (... haha)

Introduce your project and write about your work.

Moderator: PPS-Leaders

tyderion
Noxonian Brolghormeg
Posts: 36
Joined: Tue Mar 02, 2010 5:26 pm

Re: Rocket-Ticket Questionthread (... haha)

Post by tyderion » Thu May 20, 2010 7:11 pm

sorry, I was posting about the problems I have and the browser quit on me, afterwords I kinda procrastinated.

I committed the momentary version but the problem is the same (I'll quickly describe it here).
I try adjust the flying course of the rocket by using the function "get2DViewdirection" (as do the bots).
But if I apply these corrections (which result either in a up/down and a left/right correction) my rocket goes in circles.
I have been testing and trying a lot of different things (as is visible in the sourcecode with the commented stuff in the tickfunction of the rocketcontroller)

If I try to evoke get2DViewdirection with target->getPosition() instead of target->getWorldPosition() it's the the same, getPosition() always gives (0,0,0) (which could be correct). but the AIs also invoke get2DViewdirection with target->getPosition() and they seem to get useful results....

User avatar
greenman
Baron Vladimir Harkonnen
Posts: 360
Joined: Wed Oct 03, 2007 2:53 pm
Contact:

Re: Rocket-Ticket Questionthread (... haha)

Post by greenman » Fri May 21, 2010 7:51 am

i fixed a lot of things
to get a detailed overview/diff look at the following page

you should really be in the pps on the next occaisons (for sure mon 30.5. and if possible also on the pizza evening(s))
lots of things that went wrong now (i.e. using getPosition() instead of getWorldPosition) wouldn't have happened if you discussed the problems with us in the pps

edit: i merged your branch into presentation3 and created a new rocket2 branch
if you want to commit something, please do a svn switch https://svn.orxonox.net/game/code/branches/rocket2 first

btw: please configure your editor to use spaces instead of tabs for indentation
There are only 10 types of people in the world: Those who understand binary, and those who don't.

User avatar
greenman
Baron Vladimir Harkonnen
Posts: 360
Joined: Wed Oct 03, 2007 2:53 pm
Contact:

Re: Rocket-Ticket Questionthread (... haha)

Post by greenman » Fri May 21, 2010 8:40 am

btw: do you still need the files tutorial.oxw, RocketDrone.cc/h DroneFire.cc/h Testgame.cc/h ?
There are only 10 types of people in the world: Those who understand binary, and those who don't.

tyderion
Noxonian Brolghormeg
Posts: 36
Joined: Tue Mar 02, 2010 5:26 pm

Re: Rocket-Ticket Questionthread (... haha)

Post by tyderion » Fri May 21, 2010 11:25 am

thanks a lot, looking at the differences now. sorry again will be there next monday as well as pizza evening ...??
[grillparty? pizza evening? I don't have a mail mentioning a pizza evening...]
configured the editor to use spaces and switched svn branch.

no those files were just for testing purposes I would've removed them as soon as rocket worked xD
But now after downloading a new copy of the sourcecode (presentation3 branch) (into a new folder etc) I can compile but not play the game anymore, resources.oxr isn't found.
Should the data_extern (that's what the folder was named up to now) be named differently?
I updated my working folders to the state of the rocket2 branch and now the same happens there.

User avatar
Mozork
Mogthorgar, the mighty
Posts: 134
Joined: Wed Sep 24, 2008 3:27 pm

Re: Rocket-Ticket Questionthread (... haha)

Post by Mozork » Fri May 21, 2010 12:09 pm

That is an error you get, when your data directory-path is set incorrectly.
Try using ccmake instead of cmake, then there should be a variable to set the data directory, there you put the absolute path of your data directory then save and generate, compile and it should work.

User avatar
greenman
Baron Vladimir Harkonnen
Posts: 360
Joined: Wed Oct 03, 2007 2:53 pm
Contact:

Re: Rocket-Ticket Questionthread (... haha)

Post by greenman » Fri May 21, 2010 12:14 pm

we will soon send out an email concerning the pizza evening ;)

ok, then i will remove the files

which branch did you switch to ?
the best would be the following:
orxonox/rocket (with svn source switched to rocket2)
orxonox/data_extern (with svn source /game/data/trunk as before)

note: you shouldn't move/rename your folders or else you have to remove your build folder and call cmake again and rebuild everything
There are only 10 types of people in the world: Those who understand binary, and those who don't.

tyderion
Noxonian Brolghormeg
Posts: 36
Joined: Tue Mar 02, 2010 5:26 pm

Re: Rocket-Ticket Questionthread (... haha)

Post by tyderion » Fri May 21, 2010 1:46 pm

I think I did what you proposed here.

trunk (original rocket branch folder) : rocket2 branch
data_extern : data/trunk branch (as before)

I did not move any folders, I created a new folder, downloaded the presentation3 branch and the data/trunk-branch, copied the dependencies and reconfigured the files with cmake.
I could set the DATA_EXTERN variable in cmake-gui so it should work now

tyderion
Noxonian Brolghormeg
Posts: 36
Joined: Tue Mar 02, 2010 5:26 pm

Re: Rocket-Ticket Questionthread (... haha)

Post by tyderion » Fri May 21, 2010 2:08 pm

Ok now it works (starts, loads the resources etc) thanks for making the rocket follow it's target.
What bothers me now is that as soon as any spaceship (mine or that of a bot) gets destroyed I get the following error:

Code: Select all

Debug Assertion Failed!
Expression: map/set iterator not incrementable
(I used the empty level or my test-tutorial level)

User avatar
greenman
Baron Vladimir Harkonnen
Posts: 360
Joined: Wed Oct 03, 2007 2:53 pm
Contact:

Re: Rocket-Ticket Questionthread (... haha)

Post by greenman » Fri May 21, 2010 3:03 pm

hm.. can you say where this assertion fails?
i don't get any error like this.
does it happen when a rocket is flying towards an enemy or always (even if you don't fire any rockets) ?

are you using the rocket2 or the presentation3 branch now ?
There are only 10 types of people in the world: Those who understand binary, and those who don't.

tyderion
Noxonian Brolghormeg
Posts: 36
Joined: Tue Mar 02, 2010 5:26 pm

Re: Rocket-Ticket Questionthread (... haha)

Post by tyderion » Fri May 21, 2010 4:28 pm

It happens with or without rockets whenever a ship gets destroyed.
It was with both branches the same...

I will delete and redownload everything then rerun cmake, recompile and try again (with both branches) to be sure it's not a strange mistake here...

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

Re: Rocket-Ticket Questionthread (... haha)

Post by x3n » Fri May 21, 2010 7:55 pm

that's probably related to LOD, because we had pretty much the same error on daniels laptop yesterday. try to comment src/orxonox/graphics/Model.cc line 151 and test again.

if that doesn't work, try to figure out the location in the code where the assertion triggers.
Fabian 'x3n' Landau, Orxonox developer

tyderion
Noxonian Brolghormeg
Posts: 36
Joined: Tue Mar 02, 2010 5:26 pm

Re: Rocket-Ticket Questionthread (... haha)

Post by tyderion » Fri May 21, 2010 9:09 pm

ok it was the same problem, now it works.

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests