Search found 30 matches

by zonkmachine
Fri Oct 15, 2021 6:57 am
Forum: Pioneer development
Topic: Updating the wiki mission scripting tutorial
Replies: 39
Views: 14055

Re: Updating the wiki mission scripting tutorial

Updating updates... Fixed up 'Interacting with the game' to use onShipDocked instead of onGameStart to avoid issues. Also fleshed out the examples some. New: https://pioneerwiki.com/wiki/Interacting_with_the_game:_Event-based_programming Old: https://pioneerwiki.com/wiki/Zonkmachine_-_Interacting_w...
by zonkmachine
Wed Oct 13, 2021 8:20 pm
Forum: Pioneer development
Topic: Updating the wiki mission scripting tutorial
Replies: 39
Views: 14055

Re: Updating the wiki mission scripting tutorial

I've started to move the 'Flavour' chapter from 'Interacting with the player: BBS forms' to 'Strings and translation' Old chapter removed saved a copy here for easy comparison: https://pioneerwiki.com/wiki/Zonkmachine_-_Mission_Flavours_OLD New addition: https://pioneerwiki.com/wiki/Strings_and_tran...
by zonkmachine
Wed Oct 13, 2021 1:58 pm
Forum: Pioneer development
Topic: Updating the wiki mission scripting tutorial
Replies: 39
Views: 14055

Re: Updating the wiki mission scripting tutorial

This snippet in data/modules/ gives me frequent crashes. I wonder if it is a version of https://github.com/pioneerspacesim/pioneer/issues/5233 Fatal: [string "[T] @libs/SpaceStation.lua"]:144: attempt to index field '?' (a nil value) stack traceback: [string "[T] @libs/SpaceStation.lu...
by zonkmachine
Tue Oct 12, 2021 4:38 pm
Forum: Pioneer development
Topic: Updating the wiki mission scripting tutorial
Replies: 39
Views: 14055

Re: Updating the wiki mission scripting tutorial

impaktor wrote: Mon Oct 11, 2021 4:37 pm Yeah, I wrote that a few days ago, before the PR went up. I should remove the part about crashing.
I reverted that change.

Q - When in the upstart process does the 'game clock' start ticking?
by zonkmachine
Sun Oct 10, 2021 7:04 pm
Forum: Pioneer development
Topic: Updating the wiki mission scripting tutorial
Replies: 39
Views: 14055

Re: Updating the wiki mission scripting tutorial

@sturnclaw Thanks for the improvements! I couldn't replicate the issue with Pioneer crashing on missing translations. I didn't write that note though. @impaktor did.
by zonkmachine
Sun Oct 03, 2021 5:35 pm
Forum: Pioneer development
Topic: Updating the wiki mission scripting tutorial
Replies: 39
Views: 14055

Re: Updating the wiki mission scripting tutorial

Thanks for the feedback! @sturnclaw Thanks! I also got the tip on irc to use onShipDocked by @joonicks. I'll try and use both methods. @impaktor Yep. Some of the concepts of Lua takes some getting used to. That code brings up the ones that got me the first time I looked into Lua. I'll try and fit it...
by zonkmachine
Sat Oct 02, 2021 5:51 pm
Forum: Pioneer development
Topic: Updating the wiki mission scripting tutorial
Replies: 39
Views: 14055

Re: Updating the wiki mission scripting tutorial

Q - What am I missing here? I'm trying to make a simple hello program work. It works something like four times out of five. data/modules/hello.lua local Event = require 'Event' local Comms = require 'Comms' local onGameStart = function () Comms.Message ('Welcome to Pioneer!') end Event.Register(&quo...
by zonkmachine
Fri Oct 01, 2021 8:52 pm
Forum: Pioneer development
Topic: Updating the wiki mission scripting tutorial
Replies: 39
Views: 14055

Updating the wiki mission scripting tutorial

Hi! I've had a go at refurbishing the mission scripting tutorial in the wiki pages a bit. I'm only getting started coding in lua myself but I'd reckon it's all within reach if I give it a month or so. First part updated is: Interacting with the game: Event-based programming , where I've just tweaked...