Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
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
4 registered members (AndrewAMD, Quad, soulman3, Ayumi), 675 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
shortcomming of ptr_first from external language #74482
05/16/06 23:48
05/16/06 23:48
Joined: Dec 2003
Posts: 521
LazyDog Offline OP
User
LazyDog  Offline OP
User

Joined: Dec 2003
Posts: 521
hello,

the scenario is using external language and no c-script.
call game_load to restore a game.
this works great but all of our pointers to our entities,bmaps,etc
were stored in global variables in our external langauge so they are not restored during the game_load. We need to use ptr_first to retrieve all the pointers.
The shortcomming is that ptr_first requires a valid pointer to the object type that you want to retrieve; however, in this scenario, we don't have a valid object pointer to pass to ptr_first so a work around is a requirement to create a temporary object using str_create, etc to pass to ptr_first.

so the thought is perhaps we need the functionality of ent_next where you can pass a nil value to receive the first entity in the list. which means....
action_next, string_next, bmap_next, view_next, panel_next, text_next, font_next, sound_next, material_next.

LazyDog


www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010
Re: shortcomming of ptr_first from external language [Re: LazyDog] #74483
05/17/06 11:32
05/17/06 11:32
Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
TripleX Offline
Expert
TripleX  Offline
Expert

Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
http://www.coniserver.net/ubbthreads/sho...true#Post624109

in eng:
long BmapType = HBYTE_BMAP<<24;
BMAP *bmap = ptr_first(&BmapType);

=> first bitmap.

TripleX

Re: shortcomming of ptr_first from external language [Re: TripleX] #74484
05/17/06 23:27
05/17/06 23:27
Joined: Dec 2003
Posts: 521
LazyDog Offline OP
User
LazyDog  Offline OP
User

Joined: Dec 2003
Posts: 521
works great, danke!!


www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010

Moderated by  aztec, 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