Newbie working on Single Player game!
by Brian "Dragon" Keeter · in Torque Game Engine · 01/30/2002 (5:01 pm) · 7 replies
Hey everybody! Just downloaded Torque and compiled the demo and I love it! I'm relatively new to programming and VERY new to programming with Torque so bare with my questions.
Is it possible to make all the changes I need to do the single player experience in the .cs and .gui files? Or will I need to rip into the .cc engine code? I also noticed two directories, server and client. If I'm making a single player game, which of those do I need to edit? Finally, all the weapon examples are projectile weapon. How would I go about implementing some sort of "squeeze the trigger, instantly hits whatever you're aiming at" weapon?
Thanks for the help! If there are any other new guys out there working on their own projects or any seasoned vets out there who can spare some chat time to answer some questions my Yahoo ID is atu_dragon2k thanks!
Brian
Is it possible to make all the changes I need to do the single player experience in the .cs and .gui files? Or will I need to rip into the .cc engine code? I also noticed two directories, server and client. If I'm making a single player game, which of those do I need to edit? Finally, all the weapon examples are projectile weapon. How would I go about implementing some sort of "squeeze the trigger, instantly hits whatever you're aiming at" weapon?
Thanks for the help! If there are any other new guys out there working on their own projects or any seasoned vets out there who can spare some chat time to answer some questions my Yahoo ID is atu_dragon2k thanks!
Brian
#2
08/19/2002 (1:42 am)
This post never got a response to wether the server scripts need to be changed if making a single player game. I've got the same question myself. Tom
#3
08/19/2002 (3:53 am)
I'm also kinda new, but I dont think you would have to change the server scripts, just take out the multiplayer option out of the gui and I think that should keep it single player... however, if your really determined to get rid of the server folder, I dont see why you cant just move all the scripts over to client and change their paths, but it would be a pain in the ass to find everyplace in the game where the path is declared, I suggest just leaving it as it is......... as for the weapon described in the first post, there is a script for EXACTLY that same weapon in one of the realmwars builds, I think it was under Phil's plan, a few plans back, just go through them and you will find it :)
#4
08/19/2002 (6:29 am)
Im making a single player, and im leaving the most of the the code and script intact, and adding to it, and leaving the multiplayer button , as i will use a mod as the death match version and coop if you go online with single player also.
#5
Well still my question is are the scripts used if i never go into multiplayer? If they are nessasary even for a single player game i'll leave the folder as is.
08/19/2002 (10:07 am)
Quote:however, if your really determined to get rid of the server folder, I dont see why you cant just move all the scripts over to client and change their paths, but it would be a pain in the ass to find everyplace in the game where the path is declared, I suggest just leaving it as it is.........
Well still my question is are the scripts used if i never go into multiplayer? If they are nessasary even for a single player game i'll leave the folder as is.
#6
08/19/2002 (10:48 am)
Even if you're not doing a multiplayer type game you'll probably need to modify files in the client and server folders. The client folder has the gui/hud/menu stuff and key commands. The server folder has most everything else (weapons, items, players, vehicles, etc). You don't need to change the .cc and .h files but you'll end up with more of a mod then a real game of your own.
#7
08/19/2002 (10:56 am)
yes you do need the scripts in the server folder, even if your making a multiplayer game, the main game script is in the server folder as well as the player, weapons.... well pretty much everything but the gui (as the last guy said), so just leave the server folder and alone, its what defines your game
Associate Anthony Rosenbaum