Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Netplay Plus Master Thread

Status
Not open for further replies.
@sytes - As of right now it is, and I plan on keeping it that way, I don't plan on making this something where no one can edit it or anything like that, because then no one can improve upon it, if it isn't, without my permission, so I'd really like to see users of it try and improve upon it, and also it'll be free to use, the server and the client with credit of course. There's a forum software called simple machines and it's great software, mainly because it's free and open source because it allows for mods which allows for more customization and stuff like that. So free and open source is good if you want more customization and stuff.

Sorry for ranting a bit.

EDIT: New screen shot of the server.
http://img205.imageshack.us/img205/8366/netplayserverscreen2ia5.th.jpg[/IMG]

I added a second page in which you can add user accounts and it'll add it to a list of all the users. As I've mentioned before this is not the final look of it, this is just a basic layout of everything. Oh and everything show does work, I don't put things down buttons and stuff for nothing.
 
One note - I don't know if you're doing this already, but don't make the mistake SuicideManic made by making passwords visible. I don't like the idea that if there's that trojan virus that print screens your PC every few seconds that they have all the passwords in your game :/.

Free, or at least paid but open source, is the best way. That's the problem with manic's server, nobody can edit it properly to change it.
 
To answer your question Wyatt, yes the passwords are hidden, that wasn't the reason why they were, but yeah. Also, they're encrypted too, so you don't need to worry as much.
 
bump

I have setup the server and played the game but when i enter my propper IP adress I get script is hanging but when i input 127.0.0.1 it works fine. Can anyone help?
 
How odd.
My error log.

On <<Sat 17 Nov 2007, 19:05:26>> the error << (#<Scene_Connect:0x16fd648>)>> occured.
On <<Sat 17 Nov 2007, 19:16:09>> the error <<cannot convert Fixnum into String (#<Scene_Connect:0x16fd7f8>)>> occured.
On <<Sat 17 Nov 2007, 19:16:54>> the error << (#<Scene_Connect:0x16fd648>)>> occured.
 
Just a little something I thought I might share, credit goes to Yeyinde who showed me how to do it, and to me who made it and added bits for Netplay+:

Replace the rescue error bit in Main with this: (backup main first!)

Code:
rescue Errno::ENOENT, Hangup
  if $!.is_a?(Errno::ENOENT)
    Network::Main.close_socket 
    # Supplement Errno::ENOENT exception
    # If unable to open file, display message and end
    filename = $!.message.sub("No such file or directory - ", "")
    print("Unable to find file #{filename}.")
    time = Time.now
    time = time.strftime("%a %d %b %Y, %X") 
    File.open("ErrorLog.rxdata","a+"){ |fh| fh.puts("On <<#{time}>> the file <<#{filename}>> was missing." )}
  elsif $!.is_a?(Hangup)
    if $scene.is_a?(Scene_Connect)
      # CHANGE MESSAGE BELOW
      print '[color=red]Failed to load server list. You can report this error to the admin at the forums. Sorry for any inconvenience caused.[/color]'
    else
      print '[color=blue]A script is taking too long to process and the game has had to close. Sorry for any inconvenience caused.[/color]'
    end
  end
ensure
  Network::Main.close_socket if Network::Main.socket != nil
end

MAKE SURE YOU BACKUP MAIN FIRST.

For non Netplay+ 1.6.x I think you can just delete:

Code:
ensure
  Network::Main.close_socket if Network::Main.socket != nil

To edit this yourself:

Change the red bits to what you want it to say if it gets "script hanging" on the server select screen.

Change the blue bits to what you want it to say if it gets "script hanging" anywhere else.

This wont fix the error, but it will let the player know what's causing it so they can tell you so you can fix it easier, and also will be a bit more... hospitalitistic (if that is a word) to the player than just "script is hanging".

What it actually does:

It sees when the game gets the hangup (script hanging) error, and says the message and closes before the script hanging message is shown.
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top