Wintermute Engine Forum

Wintermute Engine => Scripts, plugins, utilities, goodies => Topic started by: Jerrot on July 09, 2003, 04:32:31 PM

Title: Verb Bar
Post by: Jerrot on July 09, 2003, 04:32:31 PM
Hi,

now here it is - the first public source code version of my verb bar demonstration.

http://wme.jerrot.de/verbbarwin_src.exe (http://wme.jerrot.de/verbbarwin_src.exe)

If you don't trust "exe" files, (and in general you shouldn't!) you can also unpack it with 7-zip.

It's not commented yet and I won't find the time to insert them until I return from my holidays in about 2 weeks. Therefore I upload this version as a beta release for you to test and play around with it (if someone's interested!).

I just took and simplified the first scene from the WME demo project to play around with the features. So don't search the exit ;) but try to talk, use the things, try using two books in your inventory together, etc. ! Not many things changed since I published the package, but some bugs are fixed and the source code is at least much cleaner now, most verbbar functions have been outsourced to one included script now.

It's not designed to use as-it-is but it should give you an impression of how it could look and work like, the buttons are just graphics and the inventory is something LucasArts-like.

Oh, and you should work with the newest release ( >= 1.0.030 ) of WME.

The features:


That's it for now. Feedback and Improvements are welcome, but please remember, that this is only a demonstration (which I even won't use for my own project...) and not a full-features plug-in with editor tools to add buttons etc. ;)

Jerrot.
Title: Re:Verb Bar
Post by: Mnemonic on July 09, 2003, 08:12:08 PM
Nice, very nice, Jerrot! Thanks for sharing with us.

Some improvements I can think of... the default verb might be stored as a custom property (similar to what McCoy uses in the Fred game). Also, some code repeats in all scripts (the RightClick, MouseEntry, MouseLeave handlers), those could be put to an include file. But that's just a detail.
Title: Re:Verb Bar
Post by: odnorf on July 09, 2003, 08:20:30 PM
YEAH! Good work Jerrot!

A REALLY small suggestion (just to remind you what I said to you over the msn). You should declare the shortcuts in the keys.inc file so that you don't have to use those strange numbers in game.script file. It would make this part of code more readable (is this a valid word?).
Title: Re:Verb Bar
Post by: Jerrot on July 10, 2003, 09:24:46 AM
Hey,

thanks for your comments!  :D

Some improvements I can think of... the default verb might be stored as a custom property (similar to what McCoy uses in the Fred game).

Yeah, that's a good idea, I had a look at McCoy's script last night and like that way. And I really like the idea of overriding the standard verbs with some custom verbs, using the custom properties ! Really smart. I'll include this fine idea in a following release (thank McCoy!).

Also, some code repeats in all scripts (the RightClick, MouseEntry, MouseLeave handlers), those could be put to an include file. But that's just a detail.

True... that's because I customized these events with the functions and default verbs when cleaning up the code finally, they were all different before.  ::)

You should declare the shortcuts in the keys.inc file so that you don't have to use those strange numbers in game.script file. It would make this part of code more readable (is this a valid word?).

Oh, well... that's right of course, I'll do so.  
I'm working with ASCII codes for about 20 years now (yes, that' really true. I'm f***ing old!) so they don't look strange to me , I didn't even look them up somewhere. But I'm crazy anyway.

(And yes, readable is acceptable  ;), we had a MSN discussion about these words before, remember ? )
Title: Re:Verb Bar
Post by: McCoy on July 10, 2003, 12:13:13 PM
Hey Jerrot, it works great! I've tested it just a minute ago. But I haven't taken a look to the code, tough...  :-[

Quote
Yeah, that's a good idea, I had a look at McCoy's script last night and like that way. And I really like the idea of overriding the standard verbs with some custom verbs, using the custom properties ! Really smart. I'll include this fine idea in a following release (thank McCoy!).

 ;D ;D ;D
Title: Re:Verb Bar
Post by: creatorbri on August 08, 2003, 12:48:46 AM
Unfortunately, merely attempting to load the project in the Project Manager causes the entire ProjectMan to crash on my WinXP system.
Title: Re:Verb Bar
Post by: Mnemonic on August 08, 2003, 07:39:04 AM
Mandatory question #1: are you using the latest WME version? Please download the update at http://www.dead-code.org/forum/index.php?board=8



(2Jerrot: I know what you're thinking now, I'm gonna do it ASAP ;))
Title: Re:Verb Bar
Post by: Jerrot on August 08, 2003, 09:56:02 AM
Hi !

Unfortunately, merely attempting to load the project in the Project Manager causes the entire ProjectMan to crash on my WinXP system.

Yeah, as Mnemonic already mentioned - please make sure you installed the latest release/patch, this project is not compatible with WME versions below 1.0.030. It runs fine with XP.

(I tried to load this project into the old version and right - it crashes right after opening the verb bar project.)

(2Jerrot: I know what you're thinking now, I'm gonna do it ASAP ;))

I said nothing...  ;)