LUA keypad puzzle help

View: New views
14 Messages — Rating Filter:   Alert me  

LUA keypad puzzle help

by NigeC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm on with two games, the first is a simple escape the room game that needs the game player to use a telephone, the second game is a full game that has an alarm keypad very early on, but i haven't a clue where to start!
before i started using Pipmak i started the large project with Lassie/Flash and did a simple alarm pad using time line:

http://www.nigecstudios.co.uk/games/hawk/library/rooms/room4/keypad.swf
the code is 36215

I altered the Lassie engine to mimic a Nancy Drew type game but its hardly a panoramic, but While i rendered images for the flash idea i also did the 6 cubic images i have around 10 nodes :)
If anyones interested, the current flash version has rain and splash effects  but each node is over 6meg which means it runs badly online

I'm grasped the basics of Pipmak,  but LUA and coding puzzles I am struggling with, hence why i went for a single room first which i could jam in some simple interactions..
the telephone i need to be able to dial one phone number.. but obviously hitting the wrong key will be a miss dial.. and also a few lines of dialog.. a conversation with options would be nice

I know its a big ask, but something like this on the wiki would be a great code example/demo and the foundation could be used for other puzzles.. us newbies work better by example :)




Re: LUA keypad puzzle help

by Christian Walther :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

NigeC wrote:
> http://www.nigecstudios.co.uk/games/hawk/library/rooms/room4/keypad.swf
>
> ...
>
> I know its a big ask, but something like this on the wiki would be a great
> code example/demo and the foundation could be used for other puzzles..

If you can provide the graphics (and sound) used in that demo (I don't
know if I could somehow get them out of the SWF file), I should be able
to recreate it in Pipmak for you in a few minutes. I'll leave writing
the tutorial about it on the wiki to you or someone else. :)

> us newbies work better by example :)

Which is one of the reasons for the existence of the demo project. I'm
curious, does it do that job for you, or is it already too complex (or
even too simple)?

  -Christian


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pipmak-Users mailing list
Pipmak-Users@...
news://news.gmane.org/gmane.games.devel.pipmak.user
https://lists.sourceforge.net/lists/listinfo/pipmak-users

Re: LUA keypad puzzle help

by NigeC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The demo is fantastic, its about the best engine demo i've ever come across, well done :)
I can confidently put nodes together and an inventory action, i get the cubic images right every time to use in the engine
I'm not 100% sure on the dialog system yet but saying that i'm focusing on the 3D model at the moment for the room

Heres the 2 images and the sound i built the keypad with.. In flash it was a timeline animation using hidden buttons, the green or red was done with tinting on the button

I asked about doing this because its a basic foundation for a lot of puzzles, simple right or wrong :)

thanks :)

alarm.zip

Re: LUA keypad puzzle help

by Christian Walther :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

NigeC wrote:
> Heres the 2 images and the sound i built the keypad with.. In flash it was a
> timeline animation using hidden buttons, the green or red was done with
> tinting on the button

OK, here you go! The project is zipped for easier distribution, to
examine the contents you can open it in any ZIP archiver (rename it to
end in ".zip" if it isn't recognized).

"Few minutes" was a bit of a brag, of course, it took me an hour... ;)

Hope that gets you started. If you have any questions, don't hesitate to
ask. Once you think you've mastered it, please do put it on the wiki.

  -Christian


Oh, by the way: http://www.lua.org/about.html#name


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pipmak-Users mailing list
Pipmak-Users@...
news://news.gmane.org/gmane.games.devel.pipmak.user
https://lists.sourceforge.net/lists/listinfo/pipmak-users

Keypad.pipmak (73K) Download Attachment

Re: LUA keypad puzzle help

by NigeC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Christian Walther wrote:

OK, here you go! The project is zipped for easier distribution, to
examine the contents you can open it in any ZIP archiver (rename it to
end in ".zip" if it isn't recognized).

"Few minutes" was a bit of a brag, of course, it took me an hour... ;)

Hope that gets you started. If you have any questions, don't hesitate to
ask. Once you think you've mastered it, please do put it on the wiki.
That's awesome thanks Christian :)
And I can see how it works

I'll get the whole thing put into context this next week and try and modify to suit as a telephone.. hopefully we'll have our first users game soon :)

Re: LUA keypad puzzle help

by Aidan Gauland :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I would like to say that I find the Pipmak demo to be a good demonstration of
Pipmak's various features, but I wasn't really able to model much of my code
after the code in the demo project, because some of the more complex code was
lacking comments a bit, and, for example, in the code for the lever that
controls the bridge, there were a few magic numbers that made it too confusing.

Christian Walther wrote:

> NigeC wrote:
>> http://www.nigecstudios.co.uk/games/hawk/library/rooms/room4/keypad.swf
>>
>> ...
>>
>> I know its a big ask, but something like this on the wiki would be a great
>> code example/demo and the foundation could be used for other puzzles..
>
> If you can provide the graphics (and sound) used in that demo (I don't
> know if I could somehow get them out of the SWF file), I should be able
> to recreate it in Pipmak for you in a few minutes. I'll leave writing
> the tutorial about it on the wiki to you or someone else. :)
>
>> us newbies work better by example :)
>
> Which is one of the reasons for the existence of the demo project. I'm
> curious, does it do that job for you, or is it already too complex (or
> even too simple)?
>
>   -Christian
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Pipmak-Users mailing list
> Pipmak-Users@...
> news://news.gmane.org/gmane.games.devel.pipmak.user
> https://lists.sourceforge.net/lists/listinfo/pipmak-users
>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pipmak-Users mailing list
Pipmak-Users@...
news://news.gmane.org/gmane.games.devel.pipmak.user
https://lists.sourceforge.net/lists/listinfo/pipmak-users

Re: LUA keypad puzzle help

by NigeC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Aidan Gauland wrote:
I would like to say that I find the Pipmak demo to be a good demonstration of
Pipmak's various features, but I wasn't really able to model much of my code
after the code in the demo project, because some of the more complex code was
lacking comments a bit, and, for example, in the code for the lever that
controls the bridge, there were a few magic numbers that made it too confusing.
I agree a lot more comments would help... when i tried SCream altho theres no real docs the main script pretty much told you how it worked with heavy commenting

Would it be possible to have a pipmak-projects section?

Re: LUA keypad puzzle help

by Christian Walther :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Aidan Gauland wrote:
> I would like to say that I find the Pipmak demo to be a good demonstration of
> Pipmak's various features, but I wasn't really able to model much of my code
> after the code in the demo project, because some of the more complex code was
> lacking comments a bit, and, for example, in the code for the lever that
> controls the bridge, there were a few magic numbers that made it too confusing.

OK, I can see that this script could use some comments. And others too,
probably. I'll see about improving that. Thanks for the feedback!

By "magic numbers", I assume you mean how I modeled the path of the
lever handle using y as a quadratic function of x, and the bridgepos
parameter corresponding to the handle position as another quadratic
function of x. The coefficients there were obtained by fitting a
quadratic polynomial to the (approximately measured) "best" handle
position for each intermediate step.

There are a lot of other magic numbers in the script that just depend on
where things are located on the panorama.

  -Christian


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pipmak-Users mailing list
Pipmak-Users@...
news://news.gmane.org/gmane.games.devel.pipmak.user
https://lists.sourceforge.net/lists/listinfo/pipmak-users

Re: LUA keypad puzzle help

by Christian Walther :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

NigeC wrote:
> Would it be possible to have a pipmak-projects section?

I don't understand what you mean. Are you talking about the wiki?

  -Christian


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pipmak-Users mailing list
Pipmak-Users@...
news://news.gmane.org/gmane.games.devel.pipmak.user
https://lists.sourceforge.net/lists/listinfo/pipmak-users

Re: LUA keypad puzzle help

by NigeC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Christian Walther wrote:
I don't understand what you mean. Are you talking about the wiki?

  -Christian
Or just on the forum? It would be nice to see what people are up to (assuming they want to share), and i'm sure it would be a boost for you to see whats being done with Pipmak :)

Anyway back to the rendering lol

Re: LUA keypad puzzle help

by Christian Walther :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

NigeC wrote:
> Christian Walther wrote:
>> I don't understand what you mean. Are you talking about the wiki?
>>
> Or just on the forum? It would be nice to see what people are up to
> (assuming they want to share), and i'm sure it would be a boost for you to
> see whats being done with Pipmak :)

Of course. I assumed such things would happen here on the users list.
Does that feel inappropriate to you? Others?

I was actually surprised when I found that you had published a small
demo, and never lost a word about it here. :)

  -Christian


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pipmak-Users mailing list
Pipmak-Users@...
news://news.gmane.org/gmane.games.devel.pipmak.user
https://lists.sourceforge.net/lists/listinfo/pipmak-users

Re: LUA keypad puzzle help

by NigeC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Christian Walther wrote:

Of course. I assumed such things would happen here on the users list.
Does that feel inappropriate to you? Others?

I was actually surprised when I found that you had published a small
demo, and never lost a word about it here. :)
I thought you had seen my first try? i'm sure you did because i was using the debug for on screen text lol, i added an outside scene with a motorbike and car later, but it never went past that

I'm one of those people who like input and criticism, it helps make a better project, specially something that is a 360 degree world :)

Re: LUA keypad puzzle help

by Christian Walther :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

NigeC wrote:
> I thought you had seen my first try? i'm sure you did because i was using
> the debug for on screen text lol, i added an outside scene with a motorbike
> and car later, but it never went past that

If you mean the one here
<http://www.nigecstudios.co.uk/aeforum/index.php?tid=6&threaded=true>,
then no, I've only found that a few days ago. Haven't gotten around to
exploring it in depth yet.

  -Christian


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pipmak-Users mailing list
Pipmak-Users@...
news://news.gmane.org/gmane.games.devel.pipmak.user
https://lists.sourceforge.net/lists/listinfo/pipmak-users

Re: LUA keypad puzzle help

by NigeC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Christian Walther wrote:
If you mean the one here
<http://www.nigecstudios.co.uk/aeforum/index.php?tid=6&threaded=true>,
then no, I've only found that a few days ago. Haven't gotten around to
exploring it in depth yet.

Yeah that was my very first attempt :)
Theres also the game with the alarm keypad, but i'm going to do escape the motel room first just to learn some puzzle basics