Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 735 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: New way to load map [Re: sivan] #439480
04/03/14 14:09
04/03/14 14:09
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
Found it!
[img]http://ps.masterq32.de/?154[/img]

Fun fact: To get the image tag working, i have to write http://ps.masterq32.de/?154.png instead of http://ps.masterq32.de/?154

Fun fact 2: Looks like my upload system had a bug with direct file upload and deleted the old file

Last edited by MasterQ32; 04/03/14 15:28.

Visit my site: www.masterq32.de
Re: New way to load map [Re: MasterQ32] #439481
04/03/14 14:19
04/03/14 14:19
Joined: Nov 2013
Posts: 47
S
SkullBoy99 Offline OP
Newbie
SkullBoy99  Offline OP
Newbie
S

Joined: Nov 2013
Posts: 47
Look nice laugh.Guys ,now i try to do a script to open and read a .ipl file(in text format) ,where I put some coordinates(x,y,z) for two models.If will work,I will work more on that.

Re: New way to load map [Re: SkullBoy99] #439482
04/03/14 14:21
04/03/14 14:21
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
Editor will be available here in some minutes:
https://github.com/MasterQ32/SQEditor
Upload is still in progress, but check it out!


Visit my site: www.masterq32.de
Re: New way to load map [Re: MasterQ32] #439483
04/03/14 14:43
04/03/14 14:43
Joined: Nov 2013
Posts: 47
S
SkullBoy99 Offline OP
Newbie
SkullBoy99  Offline OP
Newbie
S

Joined: Nov 2013
Posts: 47
My .ipl file will look like this:
Code:
// Model name  X Y Z
road_ls01.mdl 10 25 0


But 3DGS Manual don't help me.

Re: New way to load map [Re: SkullBoy99] #439484
04/03/14 14:45
04/03/14 14:45
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
Where is the problem? file_var_read and file_str_read should do their job


Visit my site: www.masterq32.de
Re: New way to load map [Re: MasterQ32] #439485
04/03/14 14:52
04/03/14 14:52
Joined: Nov 2013
Posts: 47
S
SkullBoy99 Offline OP
Newbie
SkullBoy99  Offline OP
Newbie
S

Joined: Nov 2013
Posts: 47
I will try grin.
I really want to do this.Why?Because when you want to build your map,only click save and a file will be created,and don't need to wait!:)

Re: New way to load map [Re: SkullBoy99] #439488
04/03/14 15:51
04/03/14 15:51
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Wait... Are you just trying to get around the map compiler here?

And seriously, seriously, seriously: If you go down this road to begin with, do it in binary! Text parsing IS slow and you can circumvent it easily but refuse to. Heck, even the loading and saving would be easier than the parsing.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: New way to load map [Re: WretchedSid] #439489
04/03/14 16:37
04/03/14 16:37
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
You could as well just write WMB format directly. It's documented in the manual.

Re: New way to load map [Re: FBL] #439490
04/03/14 17:16
04/03/14 17:16
Joined: Nov 2013
Posts: 47
S
SkullBoy99 Offline OP
Newbie
SkullBoy99  Offline OP
Newbie
S

Joined: Nov 2013
Posts: 47
JustSid,no.I don't talk about a new level editor,just about my idea,and implement it in a existent editor.I think a new editor is not bad.

Firoball,yes i found it,but isn't what I want to do laugh.
Can someone look in these codes,in init_ipl() it's something wrong.


[code]
ex_ipl.h

typedef struct
{
STRING* name;
float x;
float y;
float z;
}ITEM;

ex_ipl.c

#include <ex_ipl.h>
ITEM* item;
float x_pos;
float y_pos;
float z_pos;
STRING* mdl_name
function init_ipl()
int entities = 2;
var fhandle = file_open_read("ls.ipl");
int i;
for(i=0;i<=entities;i++)
{
file_str_read(fhandle,mdl_name);
x_pos = file_var_read(fhandle);
y_pos = file_var_read(fhandle);
z_pos = file_var_read(fhandle);
item.name = mdl_name;
item.x = x_pos;
item.y = y_pos;
item.z = z_pos;
ent_create(item.name,vector(item.x,item.y,item.z),NULL);
}
file_close(fhandle);
}

Re: New way to load map [Re: SkullBoy99] #439495
04/03/14 19:14
04/03/14 19:14
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
you guys and your pointers <_<
You dont need a pointer if you just set the data in your structs directly...

Code:
ITEM item;



BTW: Please format your code right, thats so terrible to read :S

Last edited by Ch40zzC0d3r; 04/03/14 19:14.
Page 2 of 3 1 2 3

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