Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

111 Neutral

About pifreak

  • Rank

Personal Information

  1. Thanks for the help.   As for linux installers, so far an .AUR package exists for Arch Linux. But I want the game to be more stable and full of content before trying to get it into any repositories. I will look into making .deb .rpm etc soon. Thanks!   As for mac, it sounds really complicated but I guess I will try best I can. I will let you guys know if it works or if I need help. Thank you very much.   pi`
  2. Hi everyone, I'm sorry if this has been answered but I figured I'd just ask here in case it hasn't.   I have a game made with C++ called Stick Knights. It is cross-platform and is currently working on Windows and Linux.   Windows StickKnightsOnline.msi is downloaded The installer (made with AdvancedInstaller Free) copies the files to the hard drive The dependencies (libpng, SDL, SDL_image, pthread, etc.) are in the data folder as .dll files   Linux StickKnightsOnline.tar.gz is downloaded and extracted The installer (install.sh bash shell script) copies files to the hard drive The user is expected to get dependencies themselves (apt-get or yum install, etc.)   Mac OSX StickKnightsOnline.dmg would be the download file, right? The Mac installer would copy the files onto the hard drive The dependencies, what do I do about these? I can't expect Mac users to install the dependencies themselves, and there aren't .dll files on a mac, right? (.so files?)   I am new to mac development. When the dependencies are installed command line, the code compiles and runs fine. But how do I ensure the end-user won't have to worry about a thing?   Note: the SDL license prevents me from statically compiling, so I NEED TO use dynamic libraries.   Thank you for the help!   pi`
  3. Use wireshark on a command line linux server? :/
  4. The server. Like I said, it's connecting locally. When I mentioned connecting remotely disconnecting more often, I meant running the server on my workstation ----> connect to Amazon EC2 database being remote. I just don't get why it keeps losing connection during a query... pi`
  5. The server is running on an EBS volume, so everything's safe. There isn't a network problem because it's connecting to localhost. The connection is not idle too long. There is a query every 5 minutes and frequent pings to check if the connection is alive. Is something configured wrong in the my.cnf you see above? pi`
  6. You are required to allow it through your firewall for sure. When first testing, if the Windows firewall is in question at all just turn it off. A) First test locally, with your local i.p. (e.g. B) Next, test on the local network, say from "Family computer" ( connecting to the i.p. of "Exiled Server" ( *Forward port TCP 9001 to the i.p. for Exiled Server (e.g.* C) Connect from a remote computer to your external i.p. (e.g. If step [color=#ff0000]A fails, your program is bugged. If step [color=#008000]A works and [color=#ff0000]B fails, it is a firewall/antivirus related issue. If steps [color=#008000]A and [color=#008000]B work and [color=#ff0000]C fails, you have port-forwarded incorrectly. If [color=#008000]A , [color=#008000]B, an d [color=#008000]C work then you win! pi`
  7. Hello fellow developers, I have searched the topics and not found what I need so I'm making this post. I have made an online RPG game that uses MySQL for a database. Everything works fine. Transactiosn are solid. Upon losing connections it reconnects fine. I've had an experienced programmer friend look over the code and he says it looks correct. The problem is, why does the program disconnect form MySQL? It happens often if it is connecting to a remote database, however right now it's connecting to a local database. I do not really know much about MySQL config or how to do it properly. There are conflicting opinions and suggestions across the web... Server Setup: Amazon EC2 Small (Default) instance 1.7GB ram Linux Server distro - Ubuntu Server 12.04 LTS Game Server: C++ native Linux program powered by the MySQL C API. MySQL Setup: # # The MySQL database server configuration file. # # You can copy this to one of: # - "/etc/mysql/my.cnf" to set global options, # - "~/.my.cnf" to set user-specific options. # # One can use all long options that the program supports. # Run program with --help to get a list of available options and with # --print-defaults to see which it would actually understand and use. # # For explanations see # http://dev.mysql.com/doc/mysql/en/server-system-variables.html # This will be passed to all mysql clients # It has been reported that passwords should be enclosed with ticks/quotes # escpecially if they contain "#" chars... # Remember to edit /etc/mysql/debian.cnf when changing the socket location. [client] port = 3306 socket = /var/run/mysqld/mysqld.sock # Here is entries for some specific programs # The following values assume you have at least 32M ram # This was formally known as [safe_mysqld]. Both versions are currently parsed. [mysqld_safe] socket = /var/run/mysqld/mysqld.sock nice = 0 [mysqld] # # * Basic Settings # user = mysql pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr datadir = /var/lib/mysql tmpdir = /tmp lc-messages-dir = /usr/share/mysql skip-external-locking # # Instead of skip-networking the default is now to listen only on # localhost which is more compatible and is not less secure. bind-address = # # * Fine Tuning # key_buffer = 64M max_allowed_packet = 16M thread_stack = 192K thread_cache_size = 8 # This replaces the startup script and checks MyISAM tables if needed # the first time they are touched myisam-recover = BACKUP #max_connections = 100 #table_cache = 64 #thread_concurrency = 10 # # * Query Cache Configuration # query_cache_limit = 128M query_cache_size = 64M # # * Logging and Replication # # Both location gets rotated by the cronjob. # Be aware that this log type is a performance killer. # As of 5.1 you can enable the log at runtime! #general_log_file = /var/log/mysql/mysql.log #general_log = 1 # # Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf. # # Here you can see queries with especially long duration #log_slow_queries = /var/log/mysql/mysql-slow.log #long_query_time = 2 #log-queries-not-using-indexes # # The following can be used as easy to replay backup logs or for replication. # note: if you are setting up a replication slave, see README.Debian about # other settings you may need to change. #server-id = 1 #log_bin = /var/log/mysql/mysql-bin.log expire_logs_days = 7 max_binlog_size = 100M #binlog_do_db = include_database_name #binlog_ignore_db = include_database_name # # * InnoDB # # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/. # Read the manual for more InnoDB related options. There are many! # # * Security Features # # Read the manual, too, if you want chroot! # chroot = /var/lib/mysql/ # # For generating SSL certificates I recommend the OpenSSL GUI "tinyca". # # ssl-ca=/etc/mysql/cacert.pem # ssl-cert=/etc/mysql/server-cert.pem # ssl-key=/etc/mysql/server-key.pem [mysqldump] quick quote-names max_allowed_packet = 16M [mysql] #no-auto-rehash # faster start of mysql but no tab completition [isamchk] key_buffer = 16M # # * IMPORTANT: Additional settings that can override those from this file! # The files must end with '.cnf', otherwise they'll be ignored. # !includedir /etc/mysql/conf.d/ The disconnects print out errors such as: "Lost connection to MySQL Server during query!" "The MySQL Server has gone away!" This issue is not urgent but I do not quite understand why it would disconnect from a local database. And I do appreciate the help if anyone wishes to. Thank you so much! pi`
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!