• Advertisement

JinixVomitorium

Member
  • Content count

    20
  • Joined

  • Last visited

Community Reputation

151 Neutral

About JinixVomitorium

  • Rank
    Member
  1. Quest systems for database?

    I am in the last stage of my database development and need to create a quest system for an MMO-RPG, which is the one thing i have never done before...    So far the only way i can think of to do this is to have a table with every quest conversation/achievement which is linked through to the next part in the quest. along with a link to my npc table of which npc the quest is selected from.  How would one go about keeping track of what quests the character has completed? would it require a quest sheet (bool variables for each quest) for each character?   ex:   npc---- -map_id //which map the character is on -quest_id //linked to npc when talked to , displayes message //other stuff for npc   quest--- -quest_id  -quest_message -quest_rewards -quest_next //linked to npc which holds the next quest part   completion_sheet -(lists all quest ids and holds 1 or 0)   so, when i talk to npc it checks to see if completion sheet for the quest id is already done, then if it is, nothing happens, else, it calls the quest message and displays it, then you find the next guy and get the reward... Does it make sense? How would I keep up with say... killing a specific number of monsters or collecting something?
  2. Can anyone work out what is wrong with this code?

    you can also do your boundaries inside your movement functions with if statements.  EX: moveDown() if (y+1 < canvasHeight()  {y+=1;}   It will take out several unnecessary lines of code. :P
  3. [solved]Errors: a little bit of php/sql?

    Thanks, I will use that in the future. I actually went back and assigned the form values to variables to make it easier, and stripped it of all non valid characters, I just wanted to get it working before adding protection to sql injection. Thank you again! :)
  4. [solved]Errors: a little bit of php/sql?

    $sql=mysql_query("SELECT * FROM player WHERE player_name=".$POST['char_name'].""); if( mysql_num_rows($sql) == 0 ) { $sql=mysql_query("INSERT INTO player(account_id, player_name) VALUES(".$_SESSION['id'].", ".$_POST['char_name']." ) " ) or die (mysql_error() ); exit(); } else {  echo 'Character Name is taken, please try another...'; }     Im getting these errors: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in/www/zymichost.com/g/a/l/galaxy-star-games/htdocs/play.php on line 9 Unknown column 'vortex' in 'field list'   Im not too sure the sql query is correct, i get confused when combining the string and such with different quotations. Unknown column i believe is referring to the insert of $_POST['player_name'] but not sure.   if anyone can shed some light on these errors, i would be appreciated!
  5. Java images?

    What is wrong with this?      public void paint(Graphics g) {                guiLayout = getImage(getCodeBase(), "gui.png");                  //Object .paints         g.drawImage(guiLayout, 500, 300, this);              }   As far as I can tell the code is correct, there are no errors and the applet runs, but it doesnt display the image... I've tried several methods to display the image, its weird that none are working now when they worked yesterday with a different image.  -____-
  6. Game programming help

    2D is much much easier. Start out with the GUI and login system. then move on to the database and get everything set up correctly. There is no point in programming a game if you cant correctly implement you data for the game, simply because you have yet to create the database/storage of data... BTW - for the sake of the meme - "One does not simply.... program a game without a database"   oh right, the best ide for linux would have to be netbeans ide for java and c++... or eclipse (some prefer that) sudo apt-get install netbeans sudo apt-get install eclipse
  7. Who uses linux?

    Linux is just about the best OS out there. It will run many MS programs through WINE, and if it wont run, there are several substitute softwares. The best Linux distros ive used sofar are... ubunt(before version 10.10) , Linux MINT, Crunchbang.  Every since i switched to linux back in 205ish... i've found it very difficult to chang back to windows. and well... Mac OS is for losers.
  8. Advice regarding language choice - 2D Top Down Strategy

    I suggest java!  It is absolutly amazing!
  9. help with firing arcs

    try using inverse tan of the detector length to get the coordinates of the tip of the detector pointing north, then use an x,y ratio to get the new detector coordinates. wish i could draw this out on here....   length of the radius + extended part to the tip of the detector.  use the x coordinates of the center of the circle as the x on the north detector, and use center circle y coordinates + length of detector(including radius of circle).  then use the rotation degree of the ship, say :ex: 35degree.... devide it by 100 which would be a .35 to .65 ratio. go left .35 * length of detector, go right .65 * length of detector, add or subtract both by the radius of the circle based on the quadrent they are located, and you should have the x and x for the new detector direction(center of the arc). be sure to take into account of the posative and necative rotation of degrees.
  10. help with firing arcs

    I figured out a little bit of it for you. the posative/negative part.  since a circle is 360degrees and has 4 quadrants,   + +, + -, - -, - +.  you need to set up some if constructs to handle those. so you will need variables to hold the values of true north, south, east, west. then compare them to the fixed values of north south east west on your ships .   By (y) i mean the y coordinate of that object. You may need to include an x to defer from quadrants 2,3 and 1,4. the -arcs are inverss of the of the atan2 if your map coordinates are 0,0 on the center of the ship. otherwise you should have to either add rotation of 180degrees or add/subtract the diameter of the circle.   //quadrant 2 if shipNorth(Y) > trueNorth(Y) && shipNorth(Y) < trueWest(y) { arcX = -arcX  //ArcY stays same}   //quadrant 3 if shipNorth(Y) > trueWest(Y) && shipNorth(Y) < trueSouth(Y) { arcX = -arcX    arcY = -arcY}   //quadrant 4 if shipNorth(Y) < trueSouth(Y) && shipNorth(Y) > trueEast(Y) { arcX = -arcX    arcY = -arcY}     hopefully that all makes sense... i didnt apply it to code, but it is sound logic.
  11. help with firing arcs

    might I ask what language you are programming in?
  12. Not sure where to start

    All the languages in the world wont help you make a game, it you dont know how to use them correctly. Study up on the fundamentals of game developing. Its basically a load of different methods of doing certain things which are required in games: movement, collision, physics, database, ext... Very usefull stuff. I must admitt its tempting to skip over this stuff but it is extremely useful.
  13. help with firing arcs

    not quite sure how an equation would help you out on this due to the rotation... the only thing i can think of is calculating the arc of the circle as arcLength = ThetaAngle * Radius.   And constantly update your max radius of the ship by 1 coordinate, so it would scan based on the cented of the ship, but to fix that use MaxRadius - InitialRadius(ship). after each update you scan the arch coordinates to see if they collide with the enemy ship. That could work... if I understand correctly what you are trying to do. If the arc rotates with the ship im not sure how the equation will work with the different signs.
  14. Anyone have one tip for a beginner programmer?

    If you want some help with the game or need to bounce some ideas , you can ask me-  or add me on skype. I am currently refreshing on Java to make a browser mmo, so we are in the same position. :P   FL studio is a decent audio editor. Ive never used it for making custom game sounds though.
  15. Collision Detection HELP! openGL SDL c++, 2D top down racing game

    Its the same method. compare the left side of the car coordinates to the left side of the track coordinates, and the right side of the car coordinates to the right side of the track coordinates. As i said, the best way i can think of to map out the track coordinates is using calculus to find the curve x,y. then when the condition that the curve coordinates equals the car coordinates, set the car x coordinates equal to the curve x coordinates - 1. thae hardest part for you is calculating the coordinates of the track. search up some calculus equations.   if car.x <= track.left { car.x = track.left + 1} if car.x >= track.right { car.x = track.right - (car.x + car.width) - 1 }
  • Advertisement