Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
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
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (howardR), 503 guests, and 6 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
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