Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by M_D. 04/26/24 20:22
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
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 819 guests, and 3 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
incredible malfunction with pointers #447200
11/23/14 19:27
11/23/14 19:27
Joined: Jun 2014
Posts: 121
F
FEL Offline OP
Member
FEL  Offline OP
Member
F

Joined: Jun 2014
Posts: 121
Im on mobil so i will short this down.

I downloaded this nice codeexample:
http://badcom.at.ua/load/3dgs_stuff/3-2-2

This is an example for movement with a gun including animations.

So i tried to change the pointer name from weapon to pistol_1

i Replaced all weapon pointers with the new name, i dont changed something else, just this tiny name for all functions.

After that the weapon disappeared.

I Have no idea WTF i just changed one little word...


FEL - Lead Game Designer & Core Developer
Re: incredible malfunction with pointers [Re: FEL] #447201
11/23/14 19:45
11/23/14 19:45
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Well, first of all, the link you've wrote above it wrong (I guess you are talking about example with 3rd person camera and aimnig at the center of the screen). About the error you've got, you've made something wrong and there is no doubt, cause the example itself (even if it's terrible and very basic) works without any problems. Yet, I can't see a reason for you to create this thread, you want to ask someone to look throw your code and fix it for you? I'm pretty sure, no one will do that... smirk

Edit: on the second thought, I think (if weapon disappears) you've probably deleted it.. yet there are some functions looking the the weapon model, but as it doesn't exist any more, you get pointer error. Don't just copy&paste the code, that won't help you to create something playable, go throw it and learn. Better ask for explanation, then doing something like that..

Greets


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: incredible malfunction with pointers [Re: 3run] #447202
11/23/14 19:52
11/23/14 19:52
Joined: Jun 2014
Posts: 121
F
FEL Offline OP
Member
FEL  Offline OP
Member
F

Joined: Jun 2014
Posts: 121
Was a simple topic xd all about the pointer. And after reading the manuell another few times i figured out: pointers cant have special "chars" like /-_:;(_)... it was all about that crappy simple thing xd and i missed it completly xd. So im god cause i fixed it myself :3


FEL - Lead Game Designer & Core Developer
Re: incredible malfunction with pointers [Re: FEL] #447203
11/23/14 19:57
11/23/14 19:57
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
No variable or function can't any symbols except a-z, A-Z, 0-9 and _. Also special names like if, while, do, ... can't be used as a variable or function name.


Visit my site: www.masterq32.de
Re: incredible malfunction with pointers [Re: MasterQ32] #447204
11/23/14 20:12
11/23/14 20:12
Joined: Jun 2014
Posts: 121
F
FEL Offline OP
Member
FEL  Offline OP
Member
F

Joined: Jun 2014
Posts: 121
That was the error yes :-) after i changed the pointers to proper values everythings works. I should have knewit smirk such a cruel little thingy


FEL - Lead Game Designer & Core Developer

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