Author Topic: Glowy Shooter (P2P test game)  (Read 2084 times)

Rick3137

  • Sr. Member
  • ****
  • Posts: 347
  • May the Force be with You
    • View Profile
    • Rick's Programs
Re: Glowy Shooter (P2P test game)
« Reply #15 on: August 08, 2016 »
  I tried the original exe file with same results.
  I tried the sample zone program for zones and that works OK.
  I may have something wrong on my computer, but I don't know what.
 

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 549
    • View Profile
Re: Glowy Shooter (P2P test game)
« Reply #16 on: August 08, 2016 »
  I tried the original exe file with same results.
  I tried the sample zone program for zones and that works OK.
  I may have something wrong on my computer, but I don't know what.

Try changing the FS constant from 1 to 0, recompile,  and see if it helps. So much stuff that has bugged out lately, weird ...

Edit: Nah ... then mouse centering won't work because you don't have the fix that i have. Crap :(
Edit 2: Well, if you have the time and patience, you could try replacing your c:\n6\bin\renv.exe with the one attached to this e-mail and then recompile. But i totally realize if that's a lot of trouble.
« Last Edit: August 08, 2016 by Marcus »
.\\\opz

Rick3137

  • Sr. Member
  • ****
  • Posts: 347
  • May the Force be with You
    • View Profile
    • Rick's Programs
Re: Glowy Shooter (P2P test game)
« Reply #17 on: August 08, 2016 »
   That got a small screen, but no mouse zones.

« Last Edit: August 08, 2016 by Marcus »

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 549
    • View Profile
Re: Glowy Shooter (P2P test game)
« Reply #18 on: August 08, 2016 »
How extremely weird, I'm totally confused  :'(

Maybe fheight(1) in:

Code: [Select]
procedure MainMenuCreateButtons()
x = width(primary)/2 - 84; w = 168
y = height(primary)/2 - 16; h = fheight(1)
for i = 1 to 4
create zone i, x, y, w, h; y = y + h
next
endproc


is returning 0 for some reason. Either that or zones have bugged out, i don't know.


(accidentally modified your message instead of replying to it)
« Last Edit: August 08, 2016 by Marcus »
.\\\opz

Rick3137

  • Sr. Member
  • ****
  • Posts: 347
  • May the Force be with You
    • View Profile
    • Rick's Programs
Re: Glowy Shooter (P2P test game)
« Reply #19 on: August 08, 2016 »
 No change. Still no mouse zones.

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 549
    • View Profile
Re: Glowy Shooter (P2P test game)
« Reply #20 on: August 08, 2016 »
I played with PacoMan. His game works but crashes every now and then. I think it might be the IFX extension rather than the P2P thing that's faulty, since no one had any problems with the previous test game (the platformer). I'll look into it :)  Meanwhile, this is me and PacoMan actually finishing a round:

https://youtu.be/M7ab-vmqUAM
« Last Edit: August 08, 2016 by Marcus »
.\\\opz

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 549
    • View Profile
Re: Glowy Shooter (P2P test game)
« Reply #21 on: August 08, 2016 »
Rick, I'm asking too much, I know, but would you mind downloading this version of the game:

http://www.naalaa.com/p2p_next/glowy_shooter.zip

, and launch glowy_shooter_no_ifx.exe instead of the regular file?

In glowy_shooter_no_ifx, I've removed all IFX calls and replaced the effects with other stuff. I just wanna figure out which extension it is that causes the weird behavior (for PacoMan the game crashes randomly, and cvirus doesn't seem to be able to launch it at all).

« Last Edit: August 18, 2016 by Marcus »
.\\\opz

Rick3137

  • Sr. Member
  • ****
  • Posts: 347
  • May the Force be with You
    • View Profile
    • Rick's Programs
Re: Glowy Shooter (P2P test game)
« Reply #22 on: August 08, 2016 »
 No change. Still stops at 1st Menu screen.

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 549
    • View Profile
Re: Glowy Shooter (P2P test game)
« Reply #23 on: August 08, 2016 »
No change. Still stops at 1st Menu screen.

This is so strange  :D   When/if you get the time, would you also try commenting out the following lines of code:

Code: [Select]
if not P2P_Init() then end
Code: [Select]
if not BASS_Init() then end
and

Code: [Select]
_LoadGameResources
Then the main menu should open up without any extensions or sound effects (using BASS) loading. If it still doesn't work, I'm clueless.
.\\\opz

Rick3137

  • Sr. Member
  • ****
  • Posts: 347
  • May the Force be with You
    • View Profile
    • Rick's Programs
Re: Glowy Shooter (P2P test game)
« Reply #24 on: August 08, 2016 »
 None of those things helped.

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 549
    • View Profile
Re: Glowy Shooter (P2P test game)
« Reply #25 on: August 09, 2016 »
Well, thanks for testing :)

One last thing, i promise. If you add something like:

Code: [Select]
set font 2
set caret 8, 80
set color 255, 255, 255
wln mousex(), ", ", mousey()

, right before the 'redraw' call in the MainMenu function, does the output look ok? x in the range 0..640 and y in 0..360.

Do the text buttons light up when your mouse pointer hovers over them? I mean, are the zones completely broken, or is it just the clicking that fails?

« Last Edit: August 09, 2016 by Marcus »
.\\\opz

Rick3137

  • Sr. Member
  • ****
  • Posts: 347
  • May the Force be with You
    • View Profile
    • Rick's Programs
Re: Glowy Shooter (P2P test game)
« Reply #26 on: August 09, 2016 »
   That's something that I have already been looking at.
    Something is not quite right about the mousex() command. I'll look at it more tomorrow.

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 549
    • View Profile
Re: Glowy Shooter (P2P test game)
« Reply #27 on: August 09, 2016 »
I just tried the game (original version with IFX) on my many years old mini-pc running Windows 7 Starter, and it functioned correctly (well, a tad slow when the blur effects were active).

May I ask what version of Windows you're running, Rick? And do you have any non-standard features active?
.\\\opz

Rick3137

  • Sr. Member
  • ****
  • Posts: 347
  • May the Force be with You
    • View Profile
    • Rick's Programs
Re: Glowy Shooter (P2P test game)
« Reply #28 on: August 09, 2016 »
 I have Windows10, And I have the problem partly figured out.

 This is the bad line:  shouldDraw = SPD_HoldFrameDraw(60) ( at end of mainmenu loop )

 It is causing the main loop to not loop.
 I am not sure what it does, but you need to replace it with something else.


Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 549
    • View Profile
Re: Glowy Shooter (P2P test game)
« Reply #29 on: August 09, 2016 »
Alright, thanks for pinpointing the bug! I'll have a look at the Speed library what might go wrong with that function! Well done, I can never thank you enough :)

Edit:

If you wanna try the "game", you could probably replace

Code: [Select]
shouldDraw = SPD_HoldFrameDraw(60)
with

Code: [Select]
shouldDraw = true
_SPD_HoldFrame 60
« Last Edit: August 09, 2016 by Marcus »
.\\\opz