Forums Index >> General >> Problem with IpJoin Script
Page : <1> :
I have no more bots in Create mode or in Solo mode ! :(
Well, because the main.cs is the main means of execution for the entire game, I put ONE line on it:
e xec("game/server/main.cs");
I made another main.cs, which is a blank file, and has a similar purpose to Dash's or AC's main.cs for their admin scripts. Because you are bound too execute tons of scripts, some of which might spam up your main.cs (the one you didn't make). The main.cs wasn't intended by the creators (at least I don't think) to be used to execute 20 player made scripts. So, put one execution line to another main.cs file (you can really name it whatever you want, it's the execution lines that matter) like the one above the leads to it. Yours can be in another file or place, it shouldn't matter. Now you can put all the execution lines that would go in the main main.cs in the game>server>main.cs (or where ever you put yours). So now you have blank file that can be used to execute things just as well as the main main.cs, minus the horrible spam and ruining your game. In short this is what I did:
1.) Make a new blank.cs file and name it main.cs in your server folder.
2.) execute that main.cs you just made. If you put in server (like me) you can just copy and paste this, exec("game/server/main.cs"); , at the bottom, one space from all the scripting humbo jumbo.
3.) Now that you have properly executed your new blank main.cs, you can execute everything in this new main.cs you created. You can clear all execution lines out of the main main.cs all except the one executing your new main.cs, and copy + paste them to the new main.cs.
Important Note
Whenever you execute something in your main.cs file, make sure it has it's own line. In the above case for executing the duplicate main.cs, it should be at the very bottom, at least on line bellow the other scripting stuff. If for some reason, you made a mistake when you executed something in main.cs, or any other heavily executed file, all other executed lines that ran properly before will not run correctly.
I AM NOT SURE IF THIS WILL HELP WITH YOUR GUISE'S PROBLEM ABOUT BOTS. I HAVE AN INTIRELY DIFFERENT HYPTHESIS ON THAT. THIS IS A GOOD WAY TO CLEAR OUT SPAM FROM YOUR MAIN.CS, WHICH SHOULDN'T BE USED FOR EXECUTION. PLEASE MAKE A DUPLICATE OF YOUR MAIN.CS OR EVEN YOUR INTIRE THINKTANKS APPLICATION, JUST INCASE YOU MESS UP BIG TIME AND NEED TO RE-TRY. THANK YOU!
-CannedSplam©
Last edited: Wednesday, December 28, 2005 at 8:57:58 AM
Yup, its a problem from my script... I got it sorted out on dedicated server as it only executes if the game is not hosting by the time the main.cs is executed....
If you want to run create servers with my script, comment it on the main.cs (add "//" before the exec line, so the game doesnt execute that line)
What I do to keep the main.cs clean is this:
I add this line:
exec("game/execs.cs");
Then on the execs.cs I have it all sorted out like this:
//EXECS ---- PREFS ---- SCRIPTS
//BINDS
moveMap.bind....
//BINDS END
//EXECS
exec...
//EXECS END
//SCRIPTS
//Never Stop Download Bar by Art Crazy©
//SCRIPTS END
Last edited: Thursday, December 29, 2005 at 4:40:44 AM
Page : <1> :
I've recently had problems with the bot AI when running a "create" server. If I removed the execs from the main.cs it worked, and I added one by one and found out IpJoin Script was doing something about it.
I want to ask anyone that can host a game using the "create" button, and that has the script installed to check out if its a bug or something wrong in mine (I recently changed some parts in my version when trying to fix some bugs, so that might be it)