$ make debug=no
Making all for objc_program oolite...
Compiling file src/Core/Entities/Entity.m ...
Compiling file src/Core/Entities/WormholeEntity.m ...
Compiling file src/Core/Materials/OOShaderProgram.m ...
Compiling file src/Core/CollisionRegion.m ...
src/Core/CollisionRegion.m: In function '-[CollisionRegion addSubregionAtPosition:withRadius:]':
src/Core/CollisionRegion.m:116: warning: implicit declaration of function 'sphereIsWithinRegion'
src/Core/CollisionRegion.m:122: warning: implicit declaration of function 'positionIsWithinRegion'
src/Core/CollisionRegion.m: At top level:
src/Core/CollisionRegion.m:139: error: conflicting types for 'positionIsWithinRegion'
src/Core/CollisionRegion.m:122: error: previous implicit declaration of 'positionIsWithinRegion' was here
src/Core/CollisionRegion.m:158: error: conflicting types for 'sphereIsWithinRegion'
src/Core/CollisionRegion.m:116: error: previous implicit declaration of 'sphereIsWithinRegion' was here
make[3]: *** [obj.win.spk/oolite.obj/CollisionRegion.m.o] Error 1
make[2]: *** [internal-objc_program-all_] Error 2
make[1]: *** [oolite.all.objc-program.variables] Error 2
make: *** [internal-all] Error 2
Last edited by Gimi on Sun Aug 19, 2012 6:32 pm, edited 10 times in total.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime." (Gold Medal Award, Zzap!64 May 1985).
Compiling file src/Core/Entities/SkyEntity.m ...
Compiling file src/Core/Entities/StationEntity.m ...
src/Core/Entities/StationEntity.m: In function '-[StationEntity sanityCheckShipsOnApproach]':
src/Core/Entities/StationEntity.m:224: warning: 'soa' may be used uninitialized in this function
I understand cim is in the middle of implementing multiple docks, so not worried.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime." (Gold Medal Award, Zzap!64 May 1985).
Depending on progress, you may find (hopefully temporarily) that Kiota stations, Planetfall, Lave Academy and the Aquarian HQ in Aqualina are non-functional in trunk at the moment.
Just as a warning, as they use proximity docking which from the notes is in a bit of flux.
Depending on progress, you may find (hopefully temporarily) that Kiota stations, Planetfall, Lave Academy and the Aquarian HQ in Aqualina are non-functional in trunk at the moment.
Just as a warning, as they use proximity docking which from the notes is in a bit of flux.
Proximity launch should work as before for the player. Proximity manual dock should also work for the player. I've checked this with Kiota and Academy - haven't tried the other two.
Unfortunately it's not straightforward to get it to work with NPC ships (or player docking computer, which is the same code path) - I'll need to think about that a bit more.
Thanks for the update (that's why I put depending on progress). I saw that you were working on it and had something towards a fix for players so far, but as I have less than no time at the moment I haven't tried any of it.
If it works for the first two then it should work for all of them. Planetfall I can help along a bit if needed by using a dockPlayer, but the others become more tricky. The NPC and dock-comp would of course both be good to there if you can do it.
Thanks for the update (that's why I put depending on progress). I saw that you were working on it and had something towards a fix for players so far, but as I have less than no time at the moment I haven't tried any of it.
If it works for the first two then it should work for all of them. Planetfall I can help along a bit if needed by using a dockPlayer, but the others become more tricky. The NPC and dock-comp would of course both be good to there if you can do it.
The nicest long-term approach is probably just to give them a proper dock subent. As a bonus for the Kiota and Academy stations, this would allow NPC docking and launching to take place from both ends, if you gave them two dock subents. If you have a look at the RRS Waystation from Rescue Stations, that was developed before I knew about proximity docking, and has a dock subent concealed between the inner and outer hulls of the docking corridor, so it doesn't need the original object to be remodelled.
I think what I'm going to end up doing is where a station doesn't have a dock subent it will be given an invisible one of the appropriate size and position, and then I won't need to have docking and launching code duplicated between the station and the dock.
Compiling file src/Core/GuiDisplayGen.m ...
src/Core/GuiDisplayGen.m: In function '-[GuiDisplayGen drawGalaxyChart::::]':
src/Core/GuiDisplayGen.m:1675: warning: 'time' may be used uninitialized in this function
src/Core/GuiDisplayGen.m:1675: warning: 'distance' may be used uninitialized in this function
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime." (Gold Medal Award, Zzap!64 May 1985).
Compiling file src/Core/GuiDisplayGen.m ...
src/Core/GuiDisplayGen.m: In function '-[GuiDisplayGen drawGalaxyChart::::]':
src/Core/GuiDisplayGen.m:1675: warning: 'time' may be used uninitialized in this function
src/Core/GuiDisplayGen.m:1675: warning: 'distance' may be used uninitialized in this function
Interesting. The compiler is right to give a warning (though the circumstance in which it could happen is impossible in practice), but the same warnable situation existed for many revisions back. All r5133 does is add an extra branch in which distance and time are never used - it doesn't affect their initialisation at all.
That seems to have done the trick, thanks Cim. No idea why my compiler started to throw warnings now, I just report them as I find them. I leave the analysis and error fixing to you clever people.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime." (Gold Medal Award, Zzap!64 May 1985).
No idea why my compiler started to throw warnings now.
Some compilers handle things just a bit different. e.g. in current trunk my compiler complains about an semicolon to much in line: 1208 of PlayerEntitiesContracts.m (Hint to Cim).
Apparently the compiler Cim uses, ignores a semicolon at this point, but mine throws an error.