Gamestudio Links
Zorro Links
Newest Posts
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (EternallyCurious, AndrewAMD, TipmyPip, Quad), 889 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
RDG issue #480552
06/14/20 16:20
06/14/20 16:20
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
Hi all,

I'm working with a RDG algorithm, and it's been pretty hectic so far, but i've managed to get it working! The problem is I'm trying to debug a specific pattern of numbers. I currently have a variable generating a random number to choose the next room at random, and that works just fine.
Code
...
var randIndex = integer(random(6));
...

The problem is, I want to set that variable to select room 3...easy enough...
Code
...
var randIndex = 3;
...


However, when I do this, I keep getting an error Nexus too small (0). I even went in and set max_nexus = 200000, and it still gives this error.

using the original piece of code, the game runs perfectly though....any suggestions?

Re: RDG issue [Re: xbox] #480553
06/14/20 18:20
06/14/20 18:20
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
Okay.....nevermind. I'm just dumb.

I have a switch case set up to handle the values of randIndex, and well long story short, if it's always 3, it won't make it past the first room.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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