Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (vicknick, AndrewAMD), 1,292 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
file_t.h #187437
03/07/08 11:33
03/07/08 11:33
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
http://www.coniserver.net/ubbthreads/showflat.php/Cat/0/Number/821789/Main/821613/#Post821789
i tried to compile a wed plugin but it didn't work because i don't have file_t.h. what is this file?

Re: file_t.h [Re: ventilator] #187438
03/07/08 11:46
03/07/08 11:46
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I'll ask.

Re: file_t.h [Re: jcl] #187439
03/10/08 13:24
03/10/08 13:24
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
It's a simple file access class. You can download it here:

http://server.conitec.net/down/file_t.h

Re: file_t.h [Re: jcl] #187440
03/10/08 13:43
03/10/08 13:43
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
thanks!

wedpi_tools.cpp and wedpi_tools.h seem to be missing too in the january sdk. i had to copy them over from the november sdk.



i have another problem. there seems to be a bug with fetching path skills.

this is the part of wedpi_ExampleSaveLoad where the path skills get written:
Code:
for ( i=0,n=0; i<points; i++)
{
fprintf(saveStc->fp, " ");
for ( s=0; s<skills_pro_point; s++)
{
float skill=0;
oEd->obje_GetObjData(OBJD_SKILL, n++, & skill, sizeof(float));
fprintf(saveStc->fp, "%f ", skill);
}
fprintf(saveStc->fp, "\n");
}

but it always outputs 0 for all skills! in my own project i didn't get it to work either.

Re: file_t.h [Re: ventilator] #187441
03/11/08 14:25
03/11/08 14:25
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
could you please ask wlad about the path skill issue?

Re: file_t.h [Re: ventilator] #187442
03/12/08 10:37
03/12/08 10:37
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Will do. There will be an updated SDK in short, with the examples transferred to VC++ .NET. Some of the old examples in the current SDK were still for VC++ 6.

Re: file_t.h [Re: jcl] #187443
03/14/08 15:04
03/14/08 15:04
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Hier der Kommentar von Wladimir:

Die Funktion 'obje_GetObjData' funktioniert, d.h. liefert die Skills korrekt zurück.

for ( i=0; oEd->obje_GetObjData(OBJD_SKILL, i, & skill,sizeof(float)); i++)
fprintf(saveStc->fp, "%f ", skill);

Mögliche Ursachen für den Fehler:

1. Falsches Edit-Interface: z.B. 'object_GetEditInterface()' liefert ein falsches Interface, wenn ein falsches Object (z.B. ein Block) selektiert ist.

CObjEditInterface * oEd = gp_WedInterface->object_GetEditInterface();

2. Oder bei richtigen Interface: Objekt kann nicht mit dem Intrface verbunden werden, z.B.:

bool cngGroupEnable = true;
oEd->obje_SelectObjID(CurrObj.Id,cngGroupEnable) -

a) Object ist keine Entity
b) Object ist Entity, liegt aber in einer Group, die nicht aktuell selektiert ist - 'cngGroupEnable' muss dann 'true' sein, um einen Group-Wechsel zu erlauben.

Re: file_t.h [Re: jcl] #187444
03/14/08 15:22
03/14/08 15:22
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
hm... wieso funktioniert es dann mit dem von wlad geschriebenen wmp export beispiel nicht? die skills sind in der exportierten wmp datei immer null.

und ich verwende wie in wlads beispiel diese if-abfragen:
Code:
			CObjEditInterface *oEd = gp_WedInterface->object_GetEditInterface();
if(!oEd)
{
ASSERT(0);
return;
}
if(!oEd->obje_SelectObjID(Obj.Id, true))
{
ASSERT(0);
return;
}

CObjTrans ot;
oEd->obje_GetTrans(&ot, true); // funktioniert!

CPathInfo path;
oEd->obje_GetInfo(&path); // funktioniert!

...

for(i = 0, n = 0; i < numpoints; i++)
{
fprintf(fp, " ");
for(s = 0; s < numskillsperpoint; s++)
{
float skill = 0;
oEd->obje_GetObjData(OBJD_SKILL, n++, &skill, sizeof(float)); // funktioniert nicht!
fprintf(fp, "%f ", skill);
}
fprintf(fp, "\n");
}




oEd scheint schon immer das korrekte pfad objekt zu sein, weil mit oEd->obje_GetTrans(); und oEd->obje_GetInfo(); bekomme ich die passenden informationen.

Re: file_t.h [Re: ventilator] #187445
03/16/08 14:21
03/16/08 14:21
Joined: Sep 2003
Posts: 158
Wlad Offline

Conitec
Wlad  Offline

Conitec

Joined: Sep 2003
Posts: 158
Ja, jetzt habe ich dieses Problem gefunden - Bug im WED-PI-Interface - werde korrigieren.

Re: file_t.h [Re: Wlad] #187446
03/16/08 14:45
03/16/08 14:45
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
danke!

Page 1 of 2 1 2

Moderated by  old_bill, Tobias 

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