3 registered members (Akow, TipmyPip, tomaslolo),
788
guests, and 11
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Game-Edit, news
[Re: FBL]
#52467
08/28/06 12:46
08/28/06 12:46
|
Joined: Oct 2002
Posts: 4,753 Munich, Bavaria, South of Germ...
TripleX
OP
Expert
|
OP
Expert
Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
|
@lostclimate I mean hard is relativ. Things you have to do: 1) Include Game Edit: Code:
path "C:\\Programme\\Beta\\Map-Editor\\Scripts"; path "C:\\Programme\\Beta\\Map-Editor\\Hud Data"; path "C:\\Programme\\Beta\\Map-Editor\\Modelle"; resource "C:\\Programme\\Beta\\Map-Editor\\Scripts\\GEdit_Scripts.wrs"; include <material_editor.wdl>;
2) Init GameEdit in your main function Code:
material_init();
Thats all @Firo: fixed, thanks for the hint
|
|
|
Re: Game-Edit, news
[Re: FBL]
#52469
08/28/06 13:40
08/28/06 13:40
|
Joined: Oct 2002
Posts: 4,753 Munich, Bavaria, South of Germ...
TripleX
OP
Expert
|
OP
Expert
Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
|
Of course material_init(); Could be also a starter function. Than only the Paths, The Resource Statement and the Include Statement lasts. The user have to write the paths, because of course every User installs 3D-Gamestudio in other directorys. Actually all code you see is only in order to get the include statement working..
|
|
|
Re: Game-Edit, news
[Re: TripleX]
#52470
08/28/06 13:50
08/28/06 13:50
|
Joined: May 2002
Posts: 7,441
ventilator
Senior Expert
|
Senior Expert
Joined: May 2002
Posts: 7,441
|
Quote:
It was much more complicated as I thought.
what were the biggest complications? just curious...
it looks very promising now! very polished!
|
|
|
Re: Game-Edit, news
[Re: ventilator]
#52471
08/28/06 14:04
08/28/06 14:04
|
Joined: Oct 2002
Posts: 4,753 Munich, Bavaria, South of Germ...
TripleX
OP
Expert
|
OP
Expert
Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
|
The most complicated thing was the Save/Load system of GameEdit (Actually sometimes it may be still a problem). Why? Pretty easy. I don't have ANY influence into the WMP and $$M format. That means I have to write and parse the WMP / $$M 100% correctly. If I would wrote an own file format I could have often used easier ways (no object groups like in the WMP format, less information - paths! - etc.). A second big problem is simply said C-Script. In C++ you could parse a big WMP (3MB +) file at once (because of local strings, delete/new instructions etc.). I have to split the WMP file into 50KB chunks. This will result into new problems (The WMP file itself consits of Object Cunks). If I split a file into 50kb chunks I can not say if after 50KB there is a block I would have to read. A I forgot.. The 3rd problem is that I often have to think around 4 corners. Why? Because I'm not allowed to change ANYTHING of the User-Objects / Map etc. if he don't want me to do this. I'm not allowed to Save temporary data into skills, because they might be filled. I'm not allowed to temporary change some Material information, because they might be filled with some other information. There are many many other problems.. but okay
|
|
|
|