I have been implementing NPC flight system now. Quite a struggle, but got it to work now somehow. Next up in the endless task list will be Station Management, meaning that player will be able to buy a station and follow and (micro)manage station issues and also hopefully earn cash in the progress, when things go well.
I though it could be fun to show my raw dev notes from my VS code project. So these notes are for myself to remember and organize things. The content is really "raw"/unedited :) So here they are
01.01.2024
==========
BUGS:
- Every sound sample is played twice,WTF!?!?! => FIXED
4.1.2024 thu
============
TODO
- First ship maintenance service and hull repair service => DONE
- Then start NPC ship stuff...needs design first
Update: NPCs now buy ships, does not fly with them yet...
- BUG: If player has no ship, player pos is not updated according to station pos
=> station drifts away...
Update:
NPCs now taking of, everything is screwed up... does not work.. particle effects ws.
ships...ships does not move...
Issues:
-ParticleSystem uses always Vertex::transform => transform_other should be used in
case of other Ship...
-For some reason, NPC ships do not move even if thrust is applied -OK... needed to
modify thrust as NPCs not handled every frame...
TODO BUG still with NPC ship Particle System being affected by player movement...
10.1.2024 wed
=============
NPCs now flying..but something severely wrong with either coordinate system or
updating of them or both..
Sometimes NPCs stop without no apparent reason even if thrusting seems to be on.
And sometimes their movements are badly screwed up, some hyperjumps seems to appear...
=> fixed now...
11.01.2024 thursday
===================
NPCs now dock. Some shortcuts had to be made, so that they can eventually dock.
They dock if they are on station and it is set as waypoint, regardless of speed.
Will address/refine that "later"..
Still issues, with NPCs getting stuck on longer journeys...
I have now debug settings all over the place in the code...damn. Those should be
zeroed back when everything works(tm)
Update: Stuck problem solved, ship thrust was growing too big => velocity didnt
get updated any more..
There IS light at the end of the tunnel, is seems :)
TODO: BUG still with NPC ship Particle System being affected by player movement...
12.1.2024 friday
================
TBD what to do next (apart from general fixes/enhancements)...
- Maybe station management first?
- Maybe hyperspace to other system?
13.1.2024
=========
Bug fix: planet position was not updated when it is rotating around star =>
NPCs got confused when accelereated time is on and planet rotates fast...fixed now.
No comments:
Post a Comment