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

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 541
    • View Profile
Glowy Shooter (P2P test game)
« on: August 05, 2016 »
I hope some of you would be interested in testing this game in some few days :)  It's a bit more advanced than the previous P2P extension test.

https://youtu.be/LGDPwfOGVlU

I gotta fix a proper lobby screen and some other details before I need help testing it. If this game actually works well with four players, I'd say the P2P extension is complete :)
.\\\opz

cvirus

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Re: Glowy Shooter (P2P test game)
« Reply #1 on: August 05, 2016 »
Nice let me know then.

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 541
    • View Profile
Re: Glowy Shooter (P2P test game)
« Reply #2 on: August 06, 2016 »
Alright, I've uploaded a version of the game to: http://www.naalaa.com/p2p_next/glowy_shooter.zip

If anyone is interested in testing it with me, just reply to this post. A maximum of three players (excluding me) will be able to join the game.

You can play on your own by selecting to create a lobby in the main menu, but I'd say there's no chance at all that you'd win a round :) The controls are:
  • AWSD - Move
  • Mouse - Look around
  • Mouse button - shoot
  • C - Open chat menu

If the mouse sensitivity feels bad, you have to change the MOUSE_SENSITIVITY constant in the source code and recompile the program. It's set to 0.2 right now, and I guess good values are in the range [0.15 .. 0.5], but I'm not sure.

There's no real chat feature, but you can communicate through some predefined phrases.

If you want to start your own lobby, you have got to make a "port forward" on your router to your computer for port number 31903. Else people will see your lobby in their list but not be able to connect to it.

Edit Updated with a fix for lobby registration
Edit Updated to use fullscreen by default, and you can now hold down the mousebutton to shoot
Edit Updated with some minor changes, having to do with lobby listings
Edit Updated with correct version of ImageEffects.dll (ifx)
Edit Updated with new version of the Speed library
« Last Edit: August 18, 2016 by Marcus »
.\\\opz

PacoMan

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Glowy Shooter (P2P test game)
« Reply #3 on: August 06, 2016 »
Very nice indeed!

But for me the program crashes very often after I have started playing a game. Not sure why.

I hope we can play some multiplayer soon. :)

The game is indeed very hard on your own, they always get you from behind, like those sneaky spies....

Edit: it seems to crash way more often if you rotate around with the mouse.

Edit 2: strike that, I have really no idea what makes it crash more or less.
« Last Edit: August 06, 2016 by PacoMan »

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 541
    • View Profile
Re: Glowy Shooter (P2P test game)
« Reply #4 on: August 06, 2016 »
Hm, weird, never had it crash here. Trying to figure out why registering a lobby all of a sudden fails for me.
.\\\opz

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 541
    • View Profile
Re: Glowy Shooter (P2P test game)
« Reply #5 on: August 06, 2016 »
I've fixed the problem I encountered myself, with lobbies not being registered. I was using read$ instead of reads to read a string from a binary file, messing up the username sent to the server.

I also added the DLL files for BASS. I don't think that fixes your problem, PacoMan, but who knows.

.\\\opz

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 541
    • View Profile
Re: Glowy Shooter (P2P test game)
« Reply #6 on: August 06, 2016 »
Played a round with PacoMan, and, well, we lost :)  If someone more is interested in joining, I will set a time tomorrow - around 18:00 (UTC+1).
.\\\opz

cvirus

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Re: Glowy Shooter (P2P test game)
« Reply #7 on: August 06, 2016 »
It aint working with 64bits windows 10 anniversary update. :o

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 541
    • View Profile
Re: Glowy Shooter (P2P test game)
« Reply #8 on: August 06, 2016 »
It aint working with 64bits windows 10 anniversary update. :o

Oh :(  I'm using 64bits Windows 10 Home. There's was a huge update downloaded and installed today, not sure if it was the Anniversary thingy though (is there any way to check). Game is working here, of course.

I see that you can manually download the Anniversary update, but I'm not quite sure if I should or not - it would be good for naalaa, but probably bad for all other software i've got installed (if they stop working).

In what way does it not work? Do any naalaa programs work?
« Last Edit: August 06, 2016 by Marcus »
.\\\opz

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 541
    • View Profile
Re: Glowy Shooter (P2P test game)
« Reply #9 on: August 08, 2016 »
I just tried the program on my old laptop (also using win 10), and it wouldn't launch. I figure it has got something to do with how I've compiled the ifx or p2p extension. I'll fix it tomorrow (well, today, but after I've slept).
.\\\opz

Rick3137

  • Sr. Member
  • ****
  • Posts: 341
  • May the Force be with You
    • View Profile
    • Rick's Programs
Re: Glowy Shooter (P2P test game)
« Reply #10 on: August 08, 2016 »
  I don't know what it is, but it looks to me that the program fails when you run IFX_Init()

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 541
    • View Profile
Re: Glowy Shooter (P2P test game)
« Reply #11 on: August 08, 2016 »
  I don't know what it is, but it looks to me that the program fails when you run IFX_Init()

Thanks, Rick! Yeah, it seems I had copied the ifx dll (ImageEffecs.dll) from some old test project where it was compiled with another version of visual studio (making it require an extra visual studio runtime dll). I've recompiled the extension and updated the zip, and now it works on my old computer too.

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

If you have the time, please check if the program launches now :)
« Last Edit: August 18, 2016 by Marcus »
.\\\opz

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 541
    • View Profile
Re: Glowy Shooter (P2P test game)
« Reply #12 on: August 08, 2016 »
Well, lots of bugs, but they should all have been solved now. I've also added documentation of the p2p library and a small example chat program to the zip if anyone's interested. I'll make another example, turn based game, before releasing the library for real and updating naalaa.

If anyone's up for a test round (even if it's just you, Paco), I'll start a lobby at 21:00 (UTC+1) tonight.
.\\\opz

Rick3137

  • Sr. Member
  • ****
  • Posts: 341
  • May the Force be with You
    • View Profile
    • Rick's Programs
Re: Glowy Shooter (P2P test game)
« Reply #13 on: August 08, 2016 »
   I tried to run it.
   It got to the main Menu, but I could not select anything.
   In the procedure, MainMenu()  btn = zone()  does not work.
   If I force the variable btn to 1 it will get me to the next menu.

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 541
    • View Profile
Re: Glowy Shooter (P2P test game)
« Reply #14 on: August 08, 2016 »
   I tried to run it.
   It got to the main Menu, but I could not select anything.
   In the procedure, MainMenu()  btn = zone()  does not work.
   If I force the variable btn to 1 it will get me to the next menu.

... That's the weirdest thing I've ever heard :3

Does this happen even if you're using the original executable file? I'm compiling with a newer version of naalaa that handles mouse differntly. So if you compile it yourself, things might get messed up.
« Last Edit: August 08, 2016 by Marcus »
.\\\opz