Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 972 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Saving Entities into files? #147825
08/14/07 11:03
08/14/07 11:03
Joined: Jan 2007
Posts: 651
Germany
R
RedPhoenix Offline OP
User
RedPhoenix  Offline OP
User
R

Joined: Jan 2007
Posts: 651
Germany
I would be very glad for a function that allows to save a entity (model terrain for example) to a file, like it is already possible to save bmaps with bmap_save. This would be very helpful for saving ingame changes like mesh_manipulation or skin changes at the entities and using the changed files outside of the engine.

Re: Saving Entities into files? [Re: RedPhoenix] #147826
08/14/07 13:14
08/14/07 13:14
Joined: Aug 2006
Posts: 652
Netherlands
bstudio Offline
User
bstudio  Offline
User

Joined: Aug 2006
Posts: 652
Netherlands
This would be handy indeed.


BASIC programmers never die, they GOSUB and don't RETURN.
Re: Saving Entities into files? [Re: bstudio] #147827
08/14/07 13:17
08/14/07 13:17
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
You could easily write a script wich saves all important values to a file and then re-deforms the model based on the values you stored.

Re: Saving Entities into files? [Re: FBL] #147828
08/14/07 18:16
08/14/07 18:16
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline
Senior Developer
Thomas_Nitschke  Offline
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
Except that would probably take quite some time when talking of large models, for instance models used as terrains.
I'd definitely like a function to re-save models in their altered state. Since MED can save MDLs, it should be possible to give the very same ability to A6 (<-- ! ) as well, should'nt it? Or am I mistaken here?


Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Re: Saving Entities into files? [Re: Thomas_Nitschke] #147829
08/27/07 05:06
08/27/07 05:06
Joined: Mar 2007
Posts: 75
M
Metal_Man Offline
Junior Member
Metal_Man  Offline
Junior Member
M

Joined: Mar 2007
Posts: 75
I agree. It would make it easier to create a built-in level editor. There are, I suppose, other purposes...

Re: Saving Entities into files? [Re: Metal_Man] #147830
08/27/07 09:54
08/27/07 09:54
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Saving models and terrain is supported since a long time in the MED SDK.

Re: Saving Entities into files? [Re: jcl] #147831
08/27/07 10:05
08/27/07 10:05
Joined: Jan 2007
Posts: 651
Germany
R
RedPhoenix Offline OP
User
RedPhoenix  Offline OP
User
R

Joined: Jan 2007
Posts: 651
Germany
Yes I know this, but that's a little bit complicated for those of us who are not perfect with C++, I guess. At least I have no idea how to set it up (I read all the sdk files and the fileformat docs).
I just wanted to ask whether this could be added as a simple function like bmap_save to the liteC function list. This would be much more easier then.

Re: Saving Entities into files? [Re: RedPhoenix] #147832
08/27/07 11:00
08/27/07 11:00
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
It could, but model saving functions are almost exclusively used for creating model editors. For this you'd need the SDK anyway. Implementing them in the engine would make the engine unnecessarily big, and requires to add an awful lot of data structures for meshes, bones, and so on. So model saving functions are more suited for a SDK than the engine itself.

Re: Saving Entities into files? [Re: jcl] #147833
08/27/07 13:57
08/27/07 13:57
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline
Senior Developer
Thomas_Nitschke  Offline
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
I have to agree, that sounds logical. Now, suppose you could make these functions available in an easy to use way using a script file or something similar? I think it would make a great addition for non-professionals not so familiar with C/C++ to be able to save their freshly altered models from the running engine. So, by means of not overweighting the engine itself, you could provide these functions in a dll and provide a template script or something of the kind that makes them easier to use.
More clearly, what I am thinking of is something like that:

Code:

#include "i-want-to-save-my-models.c"

void doSomeKindOfMeshDeforming()
{
//move around vertices etc. from a loaded model
ent_savefile( "myAlteredModel.mdl" );
}





...and that would be about it. Something this easy to use would be enormously useful. From my experience, you rather often tend to use the functions for mesh deforming and those things and end up with good results that you want to use next time you start up your level. Since there is no way to save the modified entity, however, you will finally have all vertex positions written to a textfile and deform the entity at level start according to that data.
This is rather not so surprisingly not the fastest method. It would open up a whole range of possibilities being able to easily save altered entities to MDL files.


Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?

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