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
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (ozgur, TipmyPip, AndrewAMD), 1,209 guests, and 5 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
Page 1 of 2 1 2
wed plugin problem. #350394
12/15/10 19:54
12/15/10 19:54
Joined: Oct 2006
Posts: 23
Turkey
_cash_ Offline OP
Newbie
_cash_  Offline OP
Newbie

Joined: Oct 2006
Posts: 23
Turkey
im write a wed plugin.
i cant change String1 or String2 if entity's String1 or String2 are empty.

plugin crash.

if i manualy set entitys StringX property
and run the plugin,
plugin correctly change StringX value.

how can i solve this.

(sory for bad english)

Re: wed plugin problem. [Re: _cash_] #350410
12/15/10 21:31
12/15/10 21:31
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
if(!entity.string1) entity.string1 = str_create("Hello!");

Re: wed plugin problem. [Re: Lukas] #350411
12/15/10 21:34
12/15/10 21:34
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Its a WED Plugin wink
And the string1 and string2 are readonly inside the engine.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: wed plugin problem. [Re: WretchedSid] #350413
12/15/10 21:39
12/15/10 21:39
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
in wed they are not "in engine" yet(i know you are talking to Lukas about lite-c part), and you can actually change the string1 and string2 from plugin if they are NOT empty. If they are empty, you get an empty pointer and if try to change that you get a crash. If you alloc space for string1 and string2, then your code does not crash but string1 and string2 does not change either.

Last edited by Quadraxas; 12/15/10 21:39.

3333333333
Re: wed plugin problem. [Re: WretchedSid] #350414
12/15/10 21:40
12/15/10 21:40
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
"Its a WED Plugin"
Oops, sorry I didn't read carefully, I thought he was talking about an engine plugin.

Re: wed plugin problem. [Re: Lukas] #350474
12/16/10 12:50
12/16/10 12:50
Joined: Oct 2006
Posts: 23
Turkey
_cash_ Offline OP
Newbie
_cash_  Offline OP
Newbie

Joined: Oct 2006
Posts: 23
Turkey
did anyone change entity's StringX property in WED plugin?

Re: wed plugin problem. [Re: _cash_] #351169
12/22/10 14:23
12/22/10 14:23
Joined: Oct 2006
Posts: 23
Turkey
_cash_ Offline OP
Newbie
_cash_  Offline OP
Newbie

Joined: Oct 2006
Posts: 23
Turkey
how i change entitys skill9 property? (in wed plugin)

please help.

Re: wed plugin problem. [Re: _cash_] #351186
12/22/10 16:27
12/22/10 16:27
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I am not this familiar with the SDK, but I'll forward this question to the developer. He'll also look into the string1 and string2 issue. I think you'll have a solution after the holidays.

Re: wed plugin problem. [Re: _cash_] #351281
12/23/10 10:21
12/23/10 10:21
Joined: Sep 2003
Posts: 158
Wlad Offline

Conitec
Wlad  Offline

Conitec

Joined: Sep 2003
Posts: 158
How do you set the String1 and String2? Do you use the function "bool CObjEditInterface::obje_GetInfo ( OBJECTINFO * pObjInfo)" ?

Re: wed plugin problem. [Re: Wlad] #351285
12/23/10 11:09
12/23/10 11:09
Joined: Oct 2006
Posts: 23
Turkey
_cash_ Offline OP
Newbie
_cash_  Offline OP
Newbie

Joined: Oct 2006
Posts: 23
Turkey
when i understand i cant change StringX parameters correcly.
i think maybe i can split data and write to skills property.
but in this case, i can change only skill1-skill8 area.
i cant change skill9-skill20 area.

example:
oei->obje_SetObjData(OBJD_SKILL,n,(void *)&fskill,sizeof(float));

if n greater then 8, skills dont change.

managers stop our project becuse of this problems. frown

(sory for bad english)

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