Updating the wiki mission scripting tutorial

impaktor
Posts: 1008
Joined: Fri Dec 20, 2013 9:54 am
Location: Tellus
Contact:

Re: Updating the wiki mission scripting tutorial

Post by impaktor »

Ah, I didn't read the second code block. Sorry. I don't see anything obviously wrong with it.
I had a thought this might be triggered by some other ship, docking at some other station, but I see there's the usual "if ship is player" cond.
zonkmachine
Posts: 38
Joined: Mon Sep 20, 2021 3:18 pm

Re: Updating the wiki mission scripting tutorial

Post by zonkmachine »

Fixed up the chapter: Interacting with the player: BBS forms
New page: https://pioneerwiki.com/wiki/Interactin ... _BBS_forms
Old page: https://pioneerwiki.com/wiki/Zonkmachin ... _forms_Old

I couldn't make anything working out of the old examples on the part about the mission list. I kind of liked the old examples but for now I made up some new ones. I'll go back and make something better when I get deeper into the code.
zonkmachine
Posts: 38
Joined: Mon Sep 20, 2021 3:18 pm

Re: Updating the wiki mission scripting tutorial

Post by zonkmachine »

Edit: First question fixed! scaling down is easy with an argument like: [[File:File.png|200px]]

One of the screenshots failed to reupload. This one needs to be scaled down to 80%
https://pioneerwiki.com/wiki/File:Missionlist3.png

I got kind of frisky with the image uploading. I don't see a way to remove older versions. Is there a delete button?
Example: https://pioneerwiki.com/wiki/File:Missionlist2.png
There's two files in there. On none of the screenshots I've uploaded is there a reason to save the older history.
Maybe there is a layout option to scale the image down in the wiki code but I haven't found it.
impaktor
Posts: 1008
Joined: Fri Dec 20, 2013 9:54 am
Location: Tellus
Contact:

Re: Updating the wiki mission scripting tutorial

Post by impaktor »

You might need admin power.
I've deleted the older revision of the file you linked to above.

PS: just gave you admin rights, so you should be able to create new pages, remove old, and clean out old images.
Although I think there's some nostaligia in keeping (and displaying) some of the old BBS, fake-cockpit bottom-bar, and Frontier like clone UI screens we had, to see the progression.
zonkmachine
Posts: 38
Joined: Mon Sep 20, 2021 3:18 pm

Re: Updating the wiki mission scripting tutorial

Post by zonkmachine »

OK, thanks! I just noticed I no longer needed the captcha and it made a huge difference.
I've had a peek at the next target, 'Surviving a reload', and I think I can fix it up in about two weeks.
I'll be away from the computer for a while.

The chapter on 'Lua-based equipment' is perhaps better suited for one of the developers to fixup. Also I'm thinking the page 'Lua Scripting (old)' could be a good page for the developers to sum up the tutorial and mission scripting in general.
zonkmachine
Posts: 38
Joined: Mon Sep 20, 2021 3:18 pm

Re: Updating the wiki mission scripting tutorial

Post by zonkmachine »

I found a page on npc's on the wiki when hitting the random page button.
https://pioneerwiki.com/wiki/Missions_a ... nteraction
I'll look into integrating it into the mission scripting tutorial.
Edit: Added link in https://pioneerwiki.com/wiki/Scripting_ ... n_Creation

Nothing seem to link to it on the wiki but it seem to be from the earlier GitHub page that has two different backup pages linked to below. The second page contains the mission scripting tutorial (but all in one page):
https://github.com/Philbywhizz/pioneer/wiki
https://github.com/Ziusudra/pioneer/wiki
impaktor
Posts: 1008
Joined: Fri Dec 20, 2013 9:54 am
Location: Tellus
Contact:

Re: Updating the wiki mission scripting tutorial

Post by impaktor »

There's a "what links here" link for each wiki article, so you can see if it's an abandoned / dropped article.

I haven't read the NPC article (at least not recently), but I suspect much of that stuff is not actually used in the game. E.g. we have code for persisting NPCs, but no script use it. Neither are dice rolls used anywhere (yet), as far as I can remember, or any of the GURPS related skills. This is a part of game I'm very interested in working on, (I've bought GURPS Basic set 3, and plowed through it this summer).
zonkmachine
Posts: 38
Joined: Mon Sep 20, 2021 3:18 pm

Re: Updating the wiki mission scripting tutorial

Post by zonkmachine »

impaktor wrote: Sat Oct 30, 2021 7:22 am There's a "what links here" link for each wiki article, so you can see if it's an abandoned / dropped article.
:thumbsup: Right, it wasn't linked from the wiki page directly until I made it part of the scripting tutorial.
impaktor wrote: Sat Oct 30, 2021 7:22 am I haven't read the NPC article (at least not recently), but I suspect much of that stuff is not actually used in the game. E.g. we have code for persisting NPCs, but no script use it. Neither are dice rolls used anywhere (yet), as far as I can remember, or any of the GURPS related skills. This is a part of game I'm very interested in working on, (I've bought GURPS Basic set 3, and plowed through it this summer).
I've played with the NPC code now a bit and it has great potential.

The Missions and NPC tutorial is now updated so I removed the Outdated banner. I think it needs some larger examples and I have one cooking right now.
zonkmachine
Posts: 38
Joined: Mon Sep 20, 2021 3:18 pm

Re: Updating the wiki mission scripting tutorial

Post by zonkmachine »

I would like someone with deeper knowledge of Pioneer to write a page that brought up more advanced things like:
  • The startup/shutdown sequence of the game.
    When does the game clock start/stop ticking? Etc...
  • What parts of Lua that are removed.
    [4:05:09 PM] <sturnclaw> ... some libraries and utility functions are removed though for security reasons
    [4:17:56 PM] <zonkmachine> Like os.date() ?
    [4:38:06 PM] <sturnclaw> yup
    [4:38:33 PM] <sturnclaw> The entire os table, most of the debug table, all of the loadfile functions, and a few others I can't remember off the cuff
zonkmachine
Posts: 38
Joined: Mon Sep 20, 2021 3:18 pm

Re: Updating the wiki mission scripting tutorial

Post by zonkmachine »

For some reason, unknown to me, I've happily changed the formatting of the code examples from 'Hard tabs, 4-space aligned' as the coding conventions specifies, to 2 spaces. Why, oh why?! I'll change it back (later) but apparently the wiki interface don't take tabs from the keyboard so it looks like I'll have to do it in my trusted text editor.
Edit: Fixed!
Post Reply