Menu

A Lot of Trouble Creating New Installation

General
2007-01-21
2013-04-25
  • Jackson MacKenzie

    Hey!

    This is a great script but for some reason I can't get it to install on my server! Running PHP5 with MySQL. I've configured the config.php file perfectly and I made a new user that is "admin" (permission 2).

    So a new game gets created and it says "Game Will Begin in 24 hours or when 7 people join). But I have 7 people in the group and it is NOT working! It doesnt start! So we waited for 24 hours anyways, and it still just didnt start (even though the message now said "Due now", but it hasn't started!)

    Whats going on? I have this message in my MySQL database under "dip_games":

    More than one INDEX key was created for column `nextproc`

    Could this be the reason why the games won't start? Also, does being admin actually do anything? Because  for me, it just makes it so I can't create or join any games. And what is the point of that little GameMaster Checkbox down at the bottom? That also doesn't do anything

    Please help! I know I've connected to the database and all correctly because users can register/create a new game, I just can't START the games (even when 7 people join and 1 day has passed)

    Thank you so much :)

     
    • Jackson MacKenzie

      Edit: I'm actually running PHP 4.4.4 (I dont know if this changes anything)

       
    • kestasjk

      kestasjk - 2007-01-22

      Hello,

      Unfortunately it sounds like you haven't noticed the requirements:

      >PHP 5
      >MySQL 4.1
      InnoDB
      PHP GD module with PNG support

      You have to have all of these I'm afraid.

      PHP 4 uses a different way of dealing with objects. In PHP4
      $objectone = $objecttwo;
      will have the effect of copying $objecttwo, but in PHP5 both variables reference the same thing. phpDiplomacy relies on them both referencing the same thing, and I'm not sure what effect this would have on phpDiplomacy but it'll certainly not work.

      It needs MySQL 4.1+, because any version smaller than that doesn't support subqueries.

      InnoDB is required for transactions, and I'm not sure what effect not having this would have. It would, at the very least, mean that bugs in the adjudicator would cause the whole installation to break.

      If you're curious as to exactly what went wrong you could check errorlog.php , which should have logged any errors that cropped up, but it's a lost cause trying to run phpDiplomacy on an installation which doesn't have the prerequisites.

      As for your specific questions; having an extra INDEX is just a waste of space. I'll look into why that would have happened but it wouldn't cause any errors. The admin user is only different in that he can view the error logs (though this will probably change). The gamemaster checkbox is an image which runs gamemaster.php, which is responsible for updating games and so on.

      If you get the prerequisites up and running and are still having problems let me know and I'll help as best I can.

      Regards,
      Kestas

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.