Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (SBGuy, Petra, flink, AndrewAMD, 1 invisible), 687 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: Wierd invalid pointer. [Re: draculaFactory] #340738
09/07/10 12:21
09/07/10 12:21
Joined: Mar 2009
Posts: 146
USA
P
paracharlie Offline
Member
paracharlie  Offline
Member
P

Joined: Mar 2009
Posts: 146
USA
Hmm, I totally understand that. I'll mess around with your explanation until I fully understand. I also have alot of properties for items and weapons in my game; with weight always being a factor, so this layout really works out well for my game.
Thank you very much for taking the time to help me understand this.


A8 Commercial
Re: Wierd invalid pointer. [Re: paracharlie] #340875
09/08/10 07:53
09/08/10 07:53
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
draculaFactory Offline OP
User
draculaFactory  Offline OP
User

Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
Yea, it's not that hard. I can help you with most everything that I have implemented so far. Mine have tons of properties too and I am constantly adding more.


Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.
Re: Wierd invalid pointer. [Re: draculaFactory] #340893
09/08/10 11:57
09/08/10 11:57
Joined: Mar 2009
Posts: 146
USA
P
paracharlie Offline
Member
paracharlie  Offline
Member
P

Joined: Mar 2009
Posts: 146
USA
Ok great. I'll be working on it today, so I'm sure I'll have some questions for you.


A8 Commercial
Re: Wierd invalid pointer. [Re: paracharlie] #340993
09/09/10 12:23
09/09/10 12:23
Joined: Mar 2009
Posts: 146
USA
P
paracharlie Offline
Member
paracharlie  Offline
Member
P

Joined: Mar 2009
Posts: 146
USA
Drac, what do you use synergy_id and synergy_usecode for? What do they do?


A8 Commercial
Re: Wierd invalid pointer. [Re: paracharlie] #341056
09/10/10 03:21
09/10/10 03:21
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
draculaFactory Offline OP
User
draculaFactory  Offline OP
User

Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
That is only half-implemented in that older script, you can delete references to that. In the script that is used for combining or using items on other items, such as dragging a spell scroll and dropping it on a spellbook to add the spell. The synergy_id is the id of the item type that the cursor item reacts with, synergy_usecode is the value of the action that takes place. For example, the synergy_id of the spell scroll matches the spellbook's id (the spellbook doesn't react when dragged and dropped on the scroll, however, so the spellbook's synergy_id is 0); the synergy_usecode is used in another lookup function, it looks up a block of code that unlocks the spell in the spellbook and then destroys the scroll.

Last edited by draculaFactory; 09/10/10 03:22.

Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.
Re: Wierd invalid pointer. [Re: draculaFactory] #341096
09/10/10 17:13
09/10/10 17:13
Joined: Mar 2009
Posts: 146
USA
P
paracharlie Offline
Member
paracharlie  Offline
Member
P

Joined: Mar 2009
Posts: 146
USA
Ahh very cool.
Kind of like what Everquest did.
Another question Drac.
Why is slot_owner and slot_origin set to -99 for both tome and milling bowl?

Last edited by paracharlie; 09/11/10 21:10.

A8 Commercial
Re: Wierd invalid pointer. [Re: paracharlie] #341311
09/14/10 14:43
09/14/10 14:43
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
draculaFactory Offline OP
User
draculaFactory  Offline OP
User

Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
Sorry that this took so long. -99 means nothing... slot_origin is used to snap the item back to its original slot (that it was dragged from) when you try to drop it somewhere invalid, it is not updated during the dragging process, only when the item is successfully placed somewhere. -99 is just something that I put there to remind myself that its value is updated during game play; there will never be an item with an actual -99 value in it, look at the function that adds an item to the inventory, it updates slot_origin right away.


Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.
Re: Wierd invalid pointer. [Re: draculaFactory] #341495
09/17/10 13:15
09/17/10 13:15
Joined: Mar 2009
Posts: 146
USA
P
paracharlie Offline
Member
paracharlie  Offline
Member
P

Joined: Mar 2009
Posts: 146
USA
Thanks for your help Drac, I'm really having a easy time with this inventory.


A8 Commercial
Page 3 of 3 1 2 3

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