Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
7 registered members (3run, miwok, AndrewAMD, Quad, TipmyPip, fairtrader, 1 invisible), 637 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
FONT problem #82501
07/21/06 21:48
07/21/06 21:48
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
NL_3DGS_n00b Offline OP
Member
NL_3DGS_n00b  Offline OP
Member

Joined: Jul 2005
Posts: 262
Earth, The Netherlands
I have a level with 1 block, this level is attached to main.wdl.
main.wdl contains the menu of the game, and in this main.wdl I have included a wdl in a different folder: maps/game.wdl (game.wdl is in a subfolder named: maps).
In main.wdl there is a panel with a newgame menu, and when I press "new game" it links to a function in maps/game.wdl which sets up the new game, and loads a new wmb file.
This WDL file also creates a panel, with a digit on it, in the digit definition in the panel I use the fontname font1.
Font1 exists on main.wdl, cause I use it standardly in the menu, but when I call up the font in the digits definition, I says font1 cannot be found, if I copy the font definition from main.wdl to maps/game.wdl, it gives me the error about double definition for that font when running...

Hoe can I fix this?

EDIT:

This is the structure:

Code:
main.wdl <- main WDL file with the menu

font hsfont = <font.tga>, 13, 20;



Code:
maps/game.wdl <- ingame stuff (game.wdl is in a subfolder named: maps)

panel pan_timerback{
digits = 0,0,2,hsfont,1,time_hour;
digits = 20,0,2,hsfont,1,time_minute;
}



Last edited by NL_3DGS_n00b; 07/21/06 21:58.
Re: FONT problem [Re: NL_3DGS_n00b] #82502
07/21/06 21:59
07/21/06 21:59
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
maybe you have defined the font in main.wdl after including game.wdl?

Re: FONT problem [Re: NL_3DGS_n00b] #82503
07/21/06 22:08
07/21/06 22:08

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Hi!

Probably the definition of your font (font hsfont = <font.tga>, 13, 20;( is right after the inlude-statement (of your maps/game.wdl).
Also use the path-statemen to access files in subdir maps.
Place the font-definition before the include-statement and it will work:

Code:

path "maps";
font hsfont = <font.tga>, 13, 20;
include <game.wdl>;




mercuryus

EDIT: ups! too late

Last edited by mercuryus; 07/21/06 22:10.
Re: FONT problem [Re: ] #82504
07/21/06 22:27
07/21/06 22:27
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
NL_3DGS_n00b Offline OP
Member
NL_3DGS_n00b  Offline OP
Member

Joined: Jul 2005
Posts: 262
Earth, The Netherlands
Thanks both of you, I just put the include behind the definition of the font, and now it works. Was very logical, but I am thinking not clearly today, i'm happy I can count on the members here ^^.


The best games are the games you create yourself.

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