Everything: VGAP, RL, or otherwise

[Posting] Plugins for PCC2
Thread opener
Posted Fri, 2016-08-26 15:34 GMT

I made a small plugin that draws constellations on the starmap (like VPA). It looks a bit ugly but informative (the distance is less than 84ly). Somebody wanted?

p.s. Does anyone know how to draw text markers on starchart?

[Posting] Re: Plugins for PCC2
Posted Fri, 2016-08-26 17:57 GMT, edited Fri, 2016-08-26 17:59 GMT

p.s. Does anyone know how to draw text markers on starchart?

If my fingers remember correctly it's "p" to open the draw-menue and "m" for choosing the usual marker. ("c" for circles)

You may log on markers by clicking right, as you would do with ships. And may add a comment to this very marker then logged on with F9 which is also written on the map - at least with default settings. This works very good for setting wayponts for fleets you don't want to control via fleet manager. I usually draw a marker at a spot I set as waypoint and add the coordinates as comment. This is also shown inside every navigation chart at the shipscreen.

If this was really new to you, I'ld advice to press "h" on the starchart for the help file. There's a lot stuff you may have a look at. For example drawing shipmovement as vektor, a history of shipmovement, switching between polygons and dots for ships on the starchart and quite some more stuff. :smile:

[Posting] Re: Plugins for PCC2
Posted Fri, 2016-08-26 19:02 GMT

I made a small plugin that draws constellations on the starmap (like VPA). It looks a bit ugly but informative (the distance is less than 84ly). Somebody wanted?

How fast is it? :smile:

I'm asking because I'm using a variation of that "constellation" topic to benchmark optimisations to the script interpreter, and hesitate finishing it as long as it is too slow...

p.s. Does anyone know how to draw text markers on starchart?

Not sure what exactly you're asking; there is no way to put just text into the starchart. You can only put markers with text on the map. CCC explained how to do that with the menu; the script command is NewMarker

--Stefan

[Posting] Re: Plugins for PCC2
Thread opener
Posted Sat, 2016-08-27 15:34 GMT

You may log on markers by clicking right, as you would do with ships. And may add a comment to this very marker then logged on with F9 which is also written on the map - at least with default settings. This works very good for setting wayponts for fleets you don't want to control via fleet manager. I usually draw a marker at a spot I set as waypoint and add the coordinates as comment. This is also shown inside every navigation chart at the shipscreen.

Thank you. I understood.

[Posting] Re: Plugins for PCC2
Thread opener
Posted Sat, 2016-08-27 15:40 GMT

How fast is it? :smile:

I'm asking because I'm using a variation of that "constellation" topic to benchmark optimisations to the script interpreter, and hesitate finishing it as long as it is too slow...

--Stefan

about three seconds on my pc.:smile:

i draw constellations once. next i can turn on/turn off their on starchart using a filter. (Ctrl-F)

[Posting] Re: Plugins for PCC2
Thread opener
Posted Fri, 2016-09-09 13:37 GMT

hi guys!

Could you answer on my little question for pcc2?

Can I read messages received in the previous turn?

[Posting] Re: Plugins for PCC2
Posted Fri, 2016-09-09 15:41 GMT

hi guys!

Could you answer on my little question for pcc2?

Can I read messages received in the previous turn?

iirc that's a feature on streus to-do-list. :wink:

[Posting] Re: Plugins for PCC2
Posted Fri, 2016-09-09 18:07 GMT

Can I read messages received in the previous turn?

There is no built-in feature to do that.

You can save messages to files (press 'w' while viewing the message) which you can review later using a text editor. PCC1 even had a built-in viewer :smile:

If you have saved your results (and you should [1]), you can use the "c2mgrep" tool to search for messages:

    c2mgrep "clear to colonize" backups/result*

(...well, under Linux and Cygwin at least; I just saw that it doesn't work so well under Windows...)


--Stefan


Footnote: [1] To enable backups, press Ctrl+O, go to "Options" page, and set the "Backups" options to "activated (default)".

[Posting] Re: Plugins for PCC2
Posted Fri, 2016-09-09 18:51 GMT

There is no built-in feature to do that.

You can save messages to files (press 'w' while viewing the message) which you can review later using a text editor. PCC1 even had a built-in viewer :smile:

If you have saved your results (and you should [1]), you can use the "c2mgrep" tool to search for messages:

c2mgrep "clear to colonize" backups/result*

(...well, under Linux and Cygwin at least; I just saw that it doesn't work so well under Windows...)


--Stefan


Footnote: [1] To enable backups, press Ctrl+O, go to "Options" page, and set the "Backups" options to "activated (default)".

Personally I prefer to safe all the done turns inside their own subdirectory. That way you may always review the complete turn at will including messages and all the orders you've given.

Depending on what exactly you want to achieve with these old messages this might be somehow overkill, but copy/paste for the gamefolder + creating a zip-file (backup file for recreating the final turnfile) is by far easier than all the (OS dependend) quarrels with PCC-options above. + you get absolutely everything for review, not just messages.

[Posting] Re: Plugins for PCC2
Posted Sat, 2016-09-10 10:11 GMT

If you have saved your results (and you should [1]), you can use the "c2mgrep" tool to search for messages:

Personally I prefer to safe all the done turns inside their own subdirectory. That way you may always review the complete turn at will including messages and all the orders you've given.

The reason I added the "backup" feature to PCC2 is that if PCC2 creates backups and knows where they are, it can later load them itself. I have promised this feature - review old turns - several times; the problem is that it is really hard to do if not implemented from the start on.

I made a "PCC 2.0" so I can start with a refactoring that will finally allow this :smile:

Depending on what exactly you want to achieve with these old messages this might be somehow overkill, but copy/paste for the gamefolder + creating a zip-file (backup file for recreating the final turnfile) is by far easier than all the (OS dependend) quarrels with PCC-options above.

This OS-dependency is unintentional/accidental. Somehow I missed that Windows expects programs to expand wildcards themselves; in Linux and Cygwin, the shell does that for me. This will be fixed.


--Stefan

[Posting] Re: Plugins for PCC2
Thread opener
Posted Mon, 2016-10-24 17:41 GMT, edited Mon, 2016-10-24 17:42 GMT

Stefan, could you please make a set of optimal warp in the distance mode on the starchart? Now I need use a ship screen. It is not comfortable.

This is a testing version.
It may be incomplete, and have more bugs (or features) than the public live version at planetscentral.com.