Gamestudio Links
Zorro Links
Newest Posts
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,375 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
WINSTART - Hang on TITLE too long? #264377
05/06/09 00:20
05/06/09 00:20
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA
Hi. I had a WINSTART definition that was causing the starter window to hang. I narrowed it down to (I think) a title that was too long:

> TITLE "AaaaaAAaaaAAAaaAAAAaAAAAA!!! - A Reckless Disregard for Gravity";

Truncating the title fixed it:

> TITLE "AaaaaAAaaaAAAaaAAAAaAAAAA!!!";

The expected behavior was a visible error message of some sort (an alert, for example), but it didn't display anything, making it difficult to debug.

Using A7.73.1. Thanks.


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: WINSTART - Hang on TITLE too long? [Re: Ichiro] #264399
05/06/09 06:14
05/06/09 06:14
Joined: Jul 2000
Posts: 27,987
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,987
Frankfurt
I see. Limiting the title length is certainly a serious restriction to artistic freedom. I'll check if this limit can be removed or at least cause an error message, or if the problem was caused by something else. Can you send or upload the .WDF file that caused the hang?

Re: WINSTART - Hang on TITLE too long? [Re: jcl] #264506
05/06/09 14:43
05/06/09 14:43
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA
Sure; here's the code with the WINSTART def:

Code:
/*
	Aaaaa! - Main script entry point.
	Copyright (c) 2002-2009 Dejobaan Games, LLC.
	Confidential and proprietary and such.

	1. Modal Definitions
	2. Includes and Binds
*/


// --------------------------------------------------------------------------------------------------------------------------------------------

//
// 1. Modal Definitions held over from Inago Rage
//

// This tells the game that it's Inago Rage:
define MODE_INAGO,1;

// Uncomment this if we're building the demo distribution:
// define MODE_INAGO_DEMO,1;

// Other elements are automatically defined based on the above:
IFDEF MODE_INAGO;
	IFNDEF MODE_INAGO_DEMO;
		define MODE_INAGO_FULL,1;
	ENDIF;
ENDIF;
IFDEF MODE_INAGO_DEMO;
	define MODE_ANY_DEMO,1;
ENDIF;
IFNDEF MODE_ANY_DEMO;
	define MODE_ANY_FULL,1;
ENDIF;


// Pathing considerations:
path "Catalog";
path "Images";
path "Models";
path "Fonts";
path "..\\3DGS Misc\\Font Stamper";
path "..\\3DGS Misc\\Menu Wrangler";
path "..\\3DGS Misc\\Building Generator";
path "Source";
path "Titan Builder\\Titan Pieces";

// The game's version number (v1.10):
var inago_version = 110;



// --------------------------------------------------------------------------------------------------------------------------------------------

//
// 2. Includes and Binds
//

// Source files are separated into multiple units for tidiness:
include <definitions.wdl>;
include <skills.wdl>;
include <sound.wdl>;
include <images.wdl>;
include <Materials.wdl>;
include <objects.wdl>;
include <graphics.wdl>;
include <utility.wdl>;
include <user_interface.wdl>;
include <movement.wdl>;
include <particles.wdl>;
include <ai.wdl>;
include <enemy_generator.wdl>;
include <building_generator.wdl>;
include <items.wdl>;
include <evs.wdl>;
include <font_stamper.wdl>;
include <menu_wrangler.wdl>;
include <building_generator.wdl>;
include <module_gauges.wdl>;
include <Map_Select.wdl>;
include <Item_Select.wdl>;
include <Post_Play.wdl>;
include <Savegame.wdl>;
include <Events.wdl>;

// Here's the bulk of our actual game:
include <altitude.wdl>;
include <Bind.wdl>;

// Binding files for publish:
bind <bass.dll>;
bind <freeimage.dll>;
bind <structure_6.wmb>;

// Startup window:
WINDOW WINSTART {
	MODE STANDARD;
	SIZE 710, 355;
	BG_PATTERN <STARTER.PCX>, OPAQUE;
	PROGRESS RGB(0, 0, 0), 20, 5, 337, 705, 18;
	TITLE "AaaaaAAaaaAAAaaAAAAaAAAAA!!!";
}


> Limiting the title length is certainly a serious restriction to artistic freedom.

It was more that there was no error message to point to this cause that was a problem; I had to poke around to figure out what was happening.


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: WINSTART - Hang on TITLE too long? [Re: Ichiro] #264795
05/08/09 08:10
05/08/09 08:10
Joined: Jul 2000
Posts: 27,987
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,987
Frankfurt
Yes, it was a buffer overflow. This will be fixed in the next version.


Moderated by  jcl, Nems, Spirit, Tobias 

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