Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (7th_zorro, degenerate_762, AndrewAMD, ozgur), 774 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Snakes and Ladders #431142
10/09/13 20:25
10/09/13 20:25
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline OP

.
Nems  Offline OP

.

Joined: Mar 2003
Posts: 4,264
Wellington
Hi George, Love the snakes and ladder example and am adapting it for my little version but I have hit a problem.

I've checked through the code over and over and there is no difference except for the number of nodes used, the level name and some comments.

The problem is that on start, the +1 factor does not function correctly for me and counts node skill1 as the start of the dice results but the examples calculates from skill1 then adds the result to that and so the 'Player' moves correctly.

So if the dice roll is 1, the game freezes and the player remains in the start pos.

Only skill1 is set in WED and all other skills remain at 0 for the start node.

The edits I made are for 64 nodes set in an 8x8 grid.

I intend to recreate the project now that I am familiar with it (spent 2 days playing with it, making the board, changing node skills, adding new nodes and it's great to use this example to get back into light c)and see if the prob resolves itself...

In the meantime, would you have any immediate thoughts on where I may have slipped up given the above?

Thanks for all your examples as I now realise that they are perfect for small projects and even for publishing them, reborn that is laugh

Re: Snakes and Ladders [Re: Nems] #431246
10/11/13 19:22
10/11/13 19:22
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline OP

.
Nems  Offline OP

.

Joined: Mar 2003
Posts: 4,264
Wellington
Found the problem!
Somehow number 2 node had morphed into something else or was not actually evident because the total nodes equaled the amount set but number 2 did not exist!
Reproducing the create steps sorted the problem out nicely thanks and number 2 node now exists.

Re: Snakes and Ladders [Re: Nems] #431265
10/12/13 12:14
10/12/13 12:14
Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
It's good to hear that you have managed to solve the problem; it would have been impossible for me to catch that bug. The good news is that now you've learned how the code works, so you'll be able to tweak it according to your needs.

Re: Snakes and Ladders [Re: George] #431285
10/12/13 22:57
10/12/13 22:57
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline OP

.
Nems  Offline OP

.

Joined: Mar 2003
Posts: 4,264
Wellington
Sure and kind of you to 'suggest' 'bug' laugh but am adding other AUM based scripts with the intent of uploading to Acknex resources for Smart Ph style and Tablet style as an example of Basing projects on your supplied content to produced a full working title for user resources, including multiplayer, if I can get your multiplayer series wrapped in.

Hope to wrap it in OSAKit for browser play or include tute to the same for individual user experience.

Currently having issues with level restart but should be able to work thru them...

Thanks again for your precious resources...
Cheers..

Last edited by Nems; 10/12/13 22:58. Reason: Incomplete post
Re: Snakes and Ladders [Re: Nems] #431312
10/13/13 18:54
10/13/13 18:54
Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
You are most welcome. Most game restart issues come from variables that aren't reset to their initial values.

Re: Snakes and Ladders [Re: George] #431314
10/13/13 19:11
10/13/13 19:11
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
using okakit would be fine, I had no success with it... jcl mentioned a long time ago to make a working example in future...


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Snakes and Ladders [Re: sivan] #431316
10/14/13 00:10
10/14/13 00:10
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline OP

.
Nems  Offline OP

.

Joined: Mar 2003
Posts: 4,264
Wellington
Cheers sivan, if OSAKit doesn't work out then an ordinary Java wrapper should do the trick.

Re: Snakes and Ladders [Re: Nems] #431323
10/14/13 06:57
10/14/13 06:57
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
I'm not familiar with Java wrappers at all... frown


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Snakes and Ladders [Re: sivan] #431336
10/14/13 10:10
10/14/13 10:10
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline OP

.
Nems  Offline OP

.

Joined: Mar 2003
Posts: 4,264
Wellington
Neither am I but I do know folks who write java and have demonstrated wrapped games within a browser, the player still has to download the Game but plays it thru the browser, like Runescape etc.
If multiplayer is scripted in then play becomes a bit more interesting.

I have had a quick look at OSAKit and its a tough one all right but the promises it makes are good.

Might have to buy the pro version to get it working the way I want, that is, multiple players on multiple machines.

Cant find the 'Help' files yet or even a description about it or its process...


Moderated by  George 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1