Shiplog Captains Log

A place to discuss mods in development and concepts for new mods.
Post Reply
Militia Commander
Militia Commander
Posts: 409
Joined: Tue Nov 05, 2013 9:56 am

Mon Jul 31, 2017 7:01 am

Great mod by Bobby. Useless in 1.8a2 as it causes lag.

Worked fine in 1.5.
Somewhere between then and 1.6b4 (I don't have any of the in-between versions) it started to go wrong. (Note: bump archive topic again)
Main sign was an inability to remain in the Eridani system log unless you were in Eridani at the time. The mod flicked automatically back to the current system if you selected the Eridani system when you weren't in Eridani.
Dockscreen scrDescs vanish as well after a brief initial appearance.

A possible culprit is the change of order for <GetGlobalDockscreen> which now takes place after the <OnObjDocked> event (API 26 and higher).
Floating point support
The engine undefines all <Globals> at the start of a new game or when loading an old game.
(Thanks, digdug, for the changelog, very helpful.)

One thing I've noticed:
The <Canvas> code updating continuously rather than on entering the screen or on cursor movement although this happens in 1.5 as well.

Anyone had a go at fixing it, got any clues or seen anything else that might determine how to fix it?. Awesome mod and pretty much necessary for playing large adventures.

Fleet Admiral
Fleet Admiral
Posts: 2235
Joined: Wed Sep 01, 2010 12:54 am

Mon Jul 31, 2017 3:12 pm

I have considered doing something like this, but I am backlogged right now. I have yet to update multiple mods. It will be a while before I can think about writing a log mod.
Download and Play in 1.7 Beta...
Playership Drones v7 (Beta): Acquire and command almost any ship in Stars of the Pilgrim or Eternity Port.
Drake Technologies (Alpha): More hardware for combat in parts 1 and 2!
Star Castle Arcade: Relive classic arcade gaming in a new Transcendence adventure!
Godmode v3 (WIP): Dev/cheat tool compatible with D&O parts 1 or 2.

Militia Commander
Militia Commander
Posts: 387
Joined: Tue Mar 05, 2013 8:26 am

Tue Aug 01, 2017 8:52 am

I'm taking a look at this. So far I've:

- Standardized indentation in some places.
- Improved names and keys of some actions.
- Changed order of actions on some screens.
- Removed stSystemLogStation, which was causing severe performance impact, apparently by registering lots of objects for events. This removes some event logging functionality, but I don't feel like trying to restore it with less performance impact at the moment.
- Disabled playing sounds on dockscreen actions, since they're irritating and the game now plays a sound at the same time anyway.
- Added APIVersion 37, extends unidRPGLibrary, and ENTITY declarations, so it can work in other adventures.
- Fixed duplicate UNIDs.

Bugs not fixed yet:
- Screen descs disappearing.
- Some actions not working, including finding items.
- Inability to select Eridani unless the system list has been reordered.

I think some, if not all, of these could be caused by bad use of global variables clSystem and clNode.
Captain's log - NMS.xml
(91.09 KiB) Downloaded 13 times

Militia Commander
Militia Commander
Posts: 409
Joined: Tue Nov 05, 2013 9:56 am

Fri Aug 11, 2017 5:48 am

Nice work. And getting rid of those sounds is great. They were something you had to get used to.

The find action is working for station names just not items. This is (probably) because the stationlog has been removed.

In the station log screen the station inventories aren't available so the mod probably can't find items in them, if that's how the mod does it.

Also, if it helps, when selecting Eridani when not in Eridani it appears as if the log scrolls back through all the systems to the current system rather than jumping directly to the current system. It's also possible that selecting the last system in the game (possibly Heretic) with the mod also results in the log scrolling back to the current system, but this is from memory so I can't be sure.

Post Reply