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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, degenerate_762), 907 guests, and 2 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
Problems with error during the game #9353
06/12/02 20:04
06/12/02 20:04

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



I was wadering if anyoone could help me out get rid of this ugly mesage? It reads as follows:

The instruction at "0x00411a0d" referenced memory at "0x00004025". The meoory could not be read.

and heres how I coded the script to bring up a map of the maze.

FUNCTION updatekeys()
{
ON_T = mapon();
ON_Y = mapoff();
}

BMAP maze_map, <maze_s.bmp>;

PANEL maze_map_pan
{
POS_X 61;
POS_Y 265;
BMAP maze_map;
LAYER 3;
FLAGS REFRESH, OVERLAY;
}

FUNCTION mapon()
{
IF( KEY_T != 1) { maze_map_pan.VISIBLE = on; }
}

FUNCTION mapoff()
{
IF( KEY_Y != 1) { maze_map_pan.VISIBLE = off; }

}

any help would be apreciated

Re: Problems with error during the game #9354
06/13/02 05:34
06/13/02 05:34

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



You don't understand the syntax. This should work (I'm no expert on panels tho):

ON_T = mapon();
ON_Y = mapoff();

BMAP maze_map, <maze_s.bmp>;

PANEL maze_map_pan
{
POS_X 61;
POS_Y 265;
BMAP maze_map;
LAYER 3;
FLAGS REFRESH, OVERLAY;
}

FUNCTION mapon() {maze_map_pan.VISIBLE = on;}

FUNCTION mapoff() {maze_map_pan.VISIBLE = off;}

Re: Problems with error during the game #9355
06/13/02 05:55
06/13/02 05:55
Joined: Jun 2002
Posts: 248
NZ
mudhole Offline
Member
mudhole  Offline
Member

Joined: Jun 2002
Posts: 248
NZ
There's nothing wrong with your panels. It's these two lines that are causing the problem:

ON_T = mapon();
ON_Y = mapoff();

This means ON_T = the value returned from mapon. This causes the program to fail, as when you press T, it tries to run a function that doesn't exist.

You need to change the lines to:

ON_T = mapon;
ON_Y = mapoff;

No parenthesis means ON_T = the function mapon.

EDIT: You also need to change your functions to what Old Dude suggested to make them turn your panel on off correctly.

Re: Problems with error during the game #9356
06/13/02 07:01
06/13/02 07:01

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



thanks dudes

Re: Problems with error during the game #9357
06/14/02 04:02
06/14/02 04:02

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Get rid of the "=" sign.
Should be:
On_T mapon;
On_Y mapoff;


Moderated by  HeelX, Spirit 

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