Gamestudio Links
Zorro Links
Newest Posts
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
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Akow, degenerate_762), 1,430 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how to make "file types" for my editor #402378
06/03/12 21:04
06/03/12 21:04
Joined: Jun 2011
Posts: 75
algeria
T
Tonyjack221 Offline OP
Junior Member
Tonyjack221  Offline OP
Junior Member
T

Joined: Jun 2011
Posts: 75
algeria
hi All
i need to make a file type for my editor like Particle Effect Builder can save it and load it in the editor
plz help me

Re: how to make "file types" for my editor [Re: Tonyjack221] #402379
06/03/12 21:06
06/03/12 21:06
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
file_open_write("filename.extention);

what you write into this file is your thing laugh


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: how to make "file types" for my editor [Re: Espér] #402380
06/03/12 21:12
06/03/12 21:12
Joined: Jun 2011
Posts: 75
algeria
T
Tonyjack221 Offline OP
Junior Member
Tonyjack221  Offline OP
Junior Member
T

Joined: Jun 2011
Posts: 75
algeria
can you give me a example ?

Re: how to make "file types" for my editor [Re: Tonyjack221] #402383
06/03/12 22:00
06/03/12 22:00
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: how to make "file types" for my editor [Re: Espér] #402455
06/05/12 17:21
06/05/12 17:21
Joined: Feb 2005
Posts: 3,687
Hessen, Germany
T
Tempelbauer Offline
Expert
Tempelbauer  Offline
Expert
T

Joined: Feb 2005
Posts: 3,687
Hessen, Germany
a custom file type is nothing else than a file which you´re filling with values using your own specification. you can choose an extension for your filetype and assign your program to it by modifing the registry (this is normally performed by the setup-routine).

with the commands esper mentioned you can read and write informations to the file. depending on the purpose of your program or data, you have to decide how you want to save. the easiest way is to fire all vars into the file. but sometimes it can be more sensefull to serialize objects or writing in INI or XML format (especially if you want to interchange the data with other programs).

so, for the first version, just consider what information do you need in your editor if you want to restore the thing you´ve edited (positions, rotations, etc) and write these things into the file / read them out on loading


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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