Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Grant, dr_panther, AndrewAMD), 1,379 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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