Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, AndrewAMD), 877 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 4 of 6 1 2 3 4 5 6
Re: New Inventory System - Nighthawk RPG template for lite-C [Re: paracharlie] #281588
07/27/09 19:38
07/27/09 19:38
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
It's the link "New Inventory System for NHA RPG Templates 2.0 (Lite-C/A7)" at the top of the page I posted smile

A more direct link:
http://www.nighthawk.dk/v5/index.asp?PageID=ShowOther&OID=18

Re: New Inventory System - Nighthawk RPG template for lite-C [Re: Claus_N] #281658
07/28/09 01:46
07/28/09 01:46
Joined: Mar 2009
Posts: 146
USA
P
paracharlie Offline
Member
paracharlie  Offline
Member
P

Joined: Mar 2009
Posts: 146
USA
Thanks! I ran through a full test on it, items, character panel, stats, leveling up, save and load. Everything appears to be working great. Nice work, I'm going to study what you did. I like what you did with the structs.


A8 Commercial
Re: New Inventory System - Nighthawk RPG template for lite-C [Re: paracharlie] #281827
07/28/09 21:04
07/28/09 21:04
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
I'm glad to hear that it worked for you as well - especially the save/load, as I didn't try that myself smile

Re: Nighthawk RPG template for lite-C [Re: Claus_N] #281854
07/29/09 00:09
07/29/09 00:09
Joined: Mar 2009
Posts: 146
USA
P
paracharlie Offline
Member
paracharlie  Offline
Member
P

Joined: Mar 2009
Posts: 146
USA
There is a empty pointer bug when loading the game and loading a level. It appears we have to do something special in lite-c when referencing a pointer. sv_all doesnt save that it appears.


A8 Commercial
Re: Nighthawk RPG template for lite-C [Re: paracharlie] #281889
07/29/09 08:47
07/29/09 08:47
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
I tried saving/loading and it worked fine for me - no empty pointer errors.
What did you do to make the error appear and where exactly does it say the empty pointer is? smile

Re: Nighthawk RPG template for lite-C [Re: Claus_N] #281910
07/29/09 12:22
07/29/09 12:22
Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen
GorNaKosh Offline
Junior Member
GorNaKosh  Offline
Junior Member

Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen
If I try to load a game, I get an empty pointer error, too. I'm interested to know how the code for saving and specially for loading the new Item-Structs look like!? I didn't found it in your script-files.

Re: Nighthawk RPG template for lite-C [Re: GorNaKosh] #281919
07/29/09 13:24
07/29/09 13:24
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
I didn't change anything in the save/load system to make it work with the structs, it seems the engine handles that. The save/load system is located in NHAC_mainMenu.c.

I still don't get any empty pointer errors, so I don't know why and when they appear frown

Re: Nighthawk RPG template for lite-C [Re: Claus_N] #281978
07/29/09 18:33
07/29/09 18:33
Joined: Mar 2009
Posts: 146
USA
P
paracharlie Offline
Member
paracharlie  Offline
Member
P

Joined: Mar 2009
Posts: 146
USA
In order to save structs according to the manual it looks like we have to add:
add_struct(void* data, long size) before the first game save and then SV_STRUCT? There is not a whole lot of information on how to use it.

If you setup your character stats and put an item in your equipment slot then save game, exit game, start game, load last save you'll see what I mean.

Last edited by paracharlie; 07/29/09 19:34.

A8 Commercial
Re: Nighthawk RPG template for lite-C [Re: paracharlie] #282009
07/29/09 21:02
07/29/09 21:02
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
Ahh, I got an enemy dropping an item, then save -> exit -> load and got the error as well.

Yeah, it seems that we need to use add_struct, though I don't know how that works - it seems like it's necessary to use it on every instance of the struct?
Well, I don't know a fast/good way of solving that right now, so I'll get back to that problem another time.

Re: Nighthawk RPG template for lite-C [Re: Claus_N] #282034
07/30/09 00:21
07/30/09 00:21
Joined: Mar 2009
Posts: 146
USA
P
paracharlie Offline
Member
paracharlie  Offline
Member
P

Joined: Mar 2009
Posts: 146
USA
Yes it appears that it has to be every instance of the struct. I'm not sure if it can be put in at the end of every function or if it needs to be in the main loop.


A8 Commercial
Page 4 of 6 1 2 3 4 5 6

Moderated by  adoado, checkbutton, mk_1, Perro 

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