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), 846 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 2 of 6 1 2 3 4 5 6
Re: Nighthawk RPG template for lite-C [Re: Claus_N] #278888
07/15/09 23:33
07/15/09 23:33
Joined: Mar 2009
Posts: 146
USA
P
paracharlie Offline
Member
paracharlie  Offline
Member
P

Joined: Mar 2009
Posts: 146
USA
Hello Claus,
Yes the rest of the code works great. Probably one of the best iso templates around. If I can get it to work it would save me many many hours.


A8 Commercial
Re: Nighthawk RPG template for lite-C [Re: paracharlie] #278892
07/16/09 00:04
07/16/09 00: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 the rest of the code works! smile

I guess I could fix the inventory if I could test the code meanwhile, but I haven't got A7 yet frown

@i_program_games
I have uploaded the Lite-C version to my website, and it can now as well be found at http://rpg.nighthawk.dk. Thanks for the contribution! smile

Re: Nighthawk RPG template for lite-C [Re: Claus_N] #278896
07/16/09 00:24
07/16/09 00: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
Btw. paracharlie, have you read this? smile
http://www.nighthawk.dk/v5/?PageID=ShowArticle&ID=13

Just thought that it could be possible that you forgot something/did something wrong, as the item system is not as easy to use as I wanted it to be... frown
(C-script got its limitations, and I had to do a few workarounds while making the item system, to make up for the lack of structs/classes etc.)

Still don't see anything wrong in the script, but I'm too tired now anyways grin

Re: Nighthawk RPG template for lite-C [Re: Claus_N] #278903
07/16/09 02:11
07/16/09 02:11
Joined: Mar 2009
Posts: 146
USA
P
paracharlie Offline
Member
paracharlie  Offline
Member
P

Joined: Mar 2009
Posts: 146
USA
Yes I have gone over that a few times although this was the first time checking for alpha channels and they do in fact have alpha channels. I have been working with your template for about a month now because I am adding structs for such things as Character statistics, skills, combat tables etc... I am doing 3 things at once and I keep coming back to this trying to find the answer but I guess I just dont see the problem for whatever reason.
I had originally started in cscript but recently converted everything to c just because of the depth of information that I need to plug in.
What is strange to me is that you can pick an item from inventory and it appears as a mouse map but then it disappears again when you drop it into the inventory so that would tell me that the bmap is working correctly.

Last edited by paracharlie; 07/16/09 02:13.

A8 Commercial
Re: Nighthawk RPG template for lite-C [Re: paracharlie] #279017
07/16/09 12:06
07/16/09 12:06
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
Hmm, maybe the 'bmap_draw' function just doesn't work anymore for some reason?
It's the function which is responsible for drawing the item bmaps onto the inventory buttons.

Try making a panel with a bmap of an empty inventory cell, and use the bmap_draw function to draw the bmap of an item onto the panel's bmap, just to test the function smile

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

Joined: Mar 2009
Posts: 146
USA
Looks to me like bmap_draw() doesnt work.


A8 Commercial
Re: Nighthawk RPG template for lite-C [Re: paracharlie] #279224
07/16/09 22:38
07/16/09 22: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
Ok smile
I just can't see what's wrong with that function. I checked the bmap operations used in that function in both the A6 and then the A7 manual, but nothing seems to have changed, so I don't know why it's not working. I'm checking the 'beta features' page right now to see if something has changed for the pixel_for_bmap and pixel_to_bmap functions.

Anyways, try using the bmap_draw function on two pictures without an alpha channel - maybe it just doesn't draw the other alpha channel onto the picture (just a thought, but might be worth a try).

I'll let you know if I find anything on the beta-page smile
Edit: Didn't find anything there frown

Edit 2: Try initializing the variables in bmap_draw (replace "var i;var k;var t;" by "var i = 0;var k = 0;var t = 0;"),
and remove these lines: "if(t - (max_loops-1) >= 0) {wait(1);t = 0;}"

Just to see if it makes any difference.

Last edited by Claus_N; 07/17/09 00:01.
Re: Nighthawk RPG template for lite-C [Re: Claus_N] #279368
07/17/09 12:05
07/17/09 12:05
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
Got A7 now, and I tested the bmap_draw function - it works fine for me. So the mistake has to be elsewhere in the code.

Edit: I ran the sample level from the converted version, the bmaps did show up in the inventory, however it was a bit buggy. I tried casting a fireball spell, but that was a bit buggy as well frown

Anyways, it was using A7.77 Trial.

Last edited by Claus_N; 07/17/09 12:11.
Re: Nighthawk RPG template for lite-C [Re: Claus_N] #279455
07/17/09 17:47
07/17/09 17:47
Joined: Mar 2009
Posts: 146
USA
P
paracharlie Offline
Member
paracharlie  Offline
Member
P

Joined: Mar 2009
Posts: 146
USA
Ok I'm going to run the sample level directly from the converted sample level. I have 7.77 com.
Ok Claus I redownloaded and over wrote the sample level from this post. The cracked sword bmap does not show up unless i pick it up and its attached to the mouse. Same thing for you? bmap_draw() is not in my intellisense and it doesnt appear anywhere in my manual. So I'm really not even sure how to use it without info on it. I'm assuming it copies var2 to var1?

Last edited by paracharlie; 07/17/09 18:05.

A8 Commercial
Re: Nighthawk RPG template for lite-C [Re: paracharlie] #279480
07/17/09 19:53
07/17/09 19:53
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
The bmap_draw function is in 'NHASC_bitmap.c', and is a part of the template code I wrote smile

For me the items does appear in the inventory when I put them there, so I don't really know why it doesn't work for you frown

Page 2 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