|
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
paracharlie
Member
|
Member
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: 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
paracharlie
Member
|
Member
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: Claus_N]
#281978
07/29/09 18:33
07/29/09 18:33
|
Joined: Mar 2009
Posts: 146 USA
paracharlie
Member
|
Member
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: Claus_N]
#282034
07/30/09 00:21
07/30/09 00:21
|
Joined: Mar 2009
Posts: 146 USA
paracharlie
Member
|
Member
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
|
|
|
|