Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 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 2 of 2 1 2
Re: need help with these structs im using [Re: EvilSOB] #328694
06/14/10 17:42
06/14/10 17:42
Joined: Jul 2008
Posts: 223
Pittsburgh
The_Clyde Offline OP
Member
The_Clyde  Offline OP
Member

Joined: Jul 2008
Posts: 223
Pittsburgh
-Still can't figure this out frown

It seems that I'm doing something wrong in playScene that causes a problem when more than one cue is loaded...

Re: need help with these structs im using [Re: The_Clyde] #328706
06/14/10 18:33
06/14/10 18:33
Joined: Jul 2008
Posts: 223
Pittsburgh
The_Clyde Offline OP
Member
The_Clyde  Offline OP
Member

Joined: Jul 2008
Posts: 223
Pittsburgh
I think my problem is in
Code:
Cue* thiscue = newCue();
memcpy(thiscue,scene[cutscene_keyframe].actions[i],sizeof(Cue));



because thats where it gets to as it crashes.

I have an array "scene" of pointers to Keyframe structs. Among the members of the Keyframe struct is an array "actions" of pointers to Cue structs. I want to copy the content of a Cue from "actions" from a Keyframe from "scene".

Is the above code correct for doing this?

Re: need help with these structs im using [Re: The_Clyde] #328710
06/14/10 19:01
06/14/10 19:01
Joined: Jul 2008
Posts: 223
Pittsburgh
The_Clyde Offline OP
Member
The_Clyde  Offline OP
Member

Joined: Jul 2008
Posts: 223
Pittsburgh
Okay then it turns out my problem was a typo that created wrong function behavior leading to a crash, but the typo was still proper syntax so it didn't cause compile errors. Only a runtime error later in the program tongue

Even though the real problem wasn't related- thanks again EvilSOB for helping me out with the struct problems that might have become a problem later!

Re: need help with these structs im using [Re: The_Clyde] #328729
06/14/10 21:49
06/14/10 21:49
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
No problems dude.

If you have any more problems or questions with it, just yell out here...


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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