PDA Starter Kit v1.1

Post your example zscripts/ACS scripts/etc here.

Re: PDA Starter Kit

Postby ramon.dexter » Thu Oct 15, 2020 1:14 pm

Sweet, just sweet. Exactly what I was looking for for ages! Great as always, Nash! :wub:
User avatar
ramon.dexter
rudebwoy
 
Joined: 20 Oct 2015
Location: Kozolupy, Bohemia
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: PDA Starter Kit

Postby Nash » Mon Nov 02, 2020 8:58 am

v1.0 is released. Highlights include:

- Full keyboard/gamepad navigation
- Clickable scrollbars
- UI sounds
- All configuration has been moved to a separate file (zscript/PDAConfig.zc). This is to make customization much easier without exposing the user to the complicated classes.
- The license has been updated. Please read it carefully, but the short version is: you may not use v1.0 (and future versions) in monetized projects.

If there aren't any new problems found, this will be the last version I put out for a while. I will be busy working on other projects and won't be able to return to this for the time being. I've tried my best to make v1.0 as solid as possible.
Last edited by Nash on Mon Nov 02, 2020 5:56 pm, edited 1 time in total.
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

Re: PDA Starter Kit v1.0

Postby Enjay » Mon Nov 02, 2020 1:00 pm

Really cool stuff, as ever Nash.

As you know, I love this resource and I've had lots of fun messing around with it. I hope to get something out that uses it one day too. The clickable scroll bars are the final finishing touch as far as I'm concerned. (Oh, and I love the addition of sounds too.)

The new version does, however, have one of these:
Code: Select allExpand view
Script warning, "PDA.Starter.Kit.v1.0.pk3:zscript/pdamenuelements.zc" line 377:
Truncation of floating point value



I also don't know if it's really an issue but if you summon a PDA reader and then pick it up without having picked up any messages, then press enter to activate a non-existent message, the game dumps to the console with:

Code: Select allExpand view
MAP01 - PDA Test Map

]summon pdareader
VM execution aborted: array access out of bounds. Size = 0, current index = 0

Called from PDAMenu.MenuEvent at PDA.Starter.Kit.v1.0.pk3:zscript/pdamenu.zc, line 185


Doing most of the customisation from the config file does indeed make things easier. Congrats on the 1.0 release. :thumb:
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: PDA Starter Kit v1.0

Postby Jaska » Mon Nov 02, 2020 1:33 pm

Great work! Going to use this on "Lost civilization 2".
Jaska
 
Joined: 17 Dec 2019
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: PDA Starter Kit v1.1

Postby Nash » Tue Nov 03, 2020 1:31 am

v1.1 is released. Hopefully this is it. :P

Changes:

- PDAFONT is now libre (based on Red Hat's Liberation Mono)
- Fixed VM aborts and warnings
- The PDA reader now pops up a tutorial message when picked up. Can be disabled by setting the "PDAReader.ShowTutorial" property to "false" in "zscript/PDAReader.zc"
- Add sounds when selecting a PDA with the keyboard/gamepad
- PDA list now shows an "-EMPTY-" label when you have no PDAs
- Expose the scrollbar width to "PDAConfig.zc"
- Allow separate amounts of scrolling for the mousewheel and the keyboard/gamepad
- Replaced the PDA Reader pickup sprite
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

Re: PDA Starter Kit v1.1

Postby Nash » Tue Nov 03, 2020 1:31 am

Jaska: feel free to use it! Looking forward to playing LC2.
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

Re: PDA Starter Kit v1.1

Postby Enjay » Tue Nov 03, 2020 12:44 pm

Fantastic stuff Nash. It all seems to be working perfectly, and some nice last-minute tweaks too. Thank you ever so much for putting this resource together. There is no way on Earth I could have come close to making anything with even a fraction of the functionality of this, but tailoring it to my own needs is a breeze.

[Edit]
Actually, I just found a minor glitch. The problem is, I don't really know what to do to repeat it. The glitch is that very occasionally moving the mouse over the PDA entries list will highlight one entry but the highlight will rapidly flicker to the one above. As you move the mouse around over one entry to the next, the effect persists with whichever entry is under the cursor being mostly highlighted but the one above flickering.

Like I said, I'm not sure how to cause the glitch to happen but you can emulate how it looks by trying the following:

Run the test map and pick up all of the entries.
Open the reader and mouse-hover over over any of the entries except the top one
While the mouse cursor is there, press and hold the upwards menu navigation key (probably up arrow)

Once the key-repeat effect starts, you will see the entry highlight flicker from the entry that the mouse is over to the one above and back again. That's how the effect looks but, sometimes, somehow, it's possible to get this effect (or something that looks like it) without pressing the keyboard at all.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: PDA Starter Kit v1.1

Postby Nash » Tue Nov 03, 2020 9:17 pm

Enjay, glad you're enjoying it. About the flickering bug, well, unfortunately if I can't figure out how to accurately reproduce it, I won't be able to take a look. And with my upcoming busy schedule, I won't be able to spend too much time hunting for it... if you figure out a way to reliably make it happen, then I'd be glad to provide a quick fix. :D
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

Re: PDA Starter Kit v1.1

Postby Enjay » Wed Nov 04, 2020 12:20 pm

Understood. I thought that would be the answer. For all I know it could even be hardware specific but if I do find a way to reliably make it happen, I'll post the details.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: PDA Starter Kit v1.1

Postby CaptainNurbles » Sat Dec 26, 2020 10:14 pm

Fuckin' hell, this is sleek stuff, man! When I started working on a personal mod of mine back in November I was hoping I could find a way to code something like this myself (which wound up being a task WAY OUTSIDE of my skillset since I know nothing about ZScript) for the sake of having an ingame encyclopedia for tips on the mechanics of my mod. Its insane how easy this is to implement into other mods. Many thanks to ya, Nash!

CaptainNurbles
 
Joined: 27 Jan 2018
Location: The Deepest Reaches of Space
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Previous

Return to Script Library

Who is online

Users browsing this forum: No registered users and 1 guest