Conversation with ¿Jonte?«KJack on Wed 02 Apr 2008 09:34:50 PM EEST:
(08:34:50 PM) ¿Jonte?«KJack: Hai, Im having some problem with the dedicated server :'(
(08:36:09 PM) ¿Jonte?«KJack: It crashes when i try to start it :|
(08:36:59 PM) pelya: What does it say?
(08:37:09 PM) pelya: Any .DLL file missing?
(08:37:11 PM) ¿Jonte?«KJack: the send crash thing comes up
(08:37:22 PM) ¿Jonte?«KJack: want me to send it to ur email?
(08:38:28 PM) pelya: Duh. Dunno if it will help, try that. I'll recompile it with Dev-C++ then, maybe will work :/
(08:38:56 PM) ¿Jonte?«KJack: and, the python process is taking all cpu power xD
(08:40:20 PM) ¿Jonte?«KJack: does it matter which beat im running?
(08:40:24 PM) ¿Jonte?«KJack: beta*
(08:41:28 PM) pelya: That's weird, Pyhton should take very little CPU
(08:41:53 PM) pelya: Maybe it because OLX crashed.
(08:41:55 PM) ¿Jonte?«KJack: well maybe its the crash that makes mine take 99%
(08:42:02 PM) ¿Jonte?«KJack: ye :P
(08:43:59 PM) ¿Jonte?«KJack: Why isnt that crash report any usefull?
(08:44:47 PM) pelya: I don't know if my debugger can read it. So you've sent it already?
(08:45:00 PM) ¿Jonte?«KJack: nope, should i? :P
(08:45:55 PM) pelya: Send it anyway then, pelya@online.com.ua
(08:47:19 PM) ¿Jonte?«KJack: lol the bug report also got error xD
(08:47:26 PM) ¿Jonte?«KJack: "The filelocated in:
(08:47:33 PM) ¿Jonte?«KJack: (null)"
(08:49:02 PM) pelya: Yeah, that bug reporter is left from JasonB I suppose, noone used it :) What's written in messagebox that Windows pops up to you?
(08:49:59 PM) ¿Jonte?«KJack: lol u lost me on the last sentance
(08:50:43 PM) ¿Jonte?«KJack: anyways ive tryed different betas now all go error
(08:51:14 PM) pelya: Nope, you should use that OpenLieroX_dedicated.exe from archive.
(08:51:36 PM) ¿Jonte?«KJack: ooo
(08:51:47 PM) ¿Jonte?«KJack: should i name it OpenLieroX and replace old one?
(08:52:52 PM) pelya: Nope, you should run start_dedicated.bat - it will run the correct one.
(08:52:57 PM) ¿Jonte?«KJack: ok
(08:53:03 PM) pelya: And also will hide the Python window.
(08:53:03 PM) ¿Jonte?«KJack: ive done that.
(08:53:14 PM) pelya: It crashes?
(08:53:17 PM) ¿Jonte?«KJack: yes
(08:53:35 PM) ¿Jonte?«KJack: i only thought that maybe which beta u uses had some infulence :P
(08:54:03 PM) pelya: Please try http://www.4shared.com/file/42802502/ecb07487/OpenLieroX_dedicated.html - I've built it with Dev-C++
(08:54:26 PM) ¿Jonte?«KJack: ok
(08:54:28 PM) pelya: Oh, and plz post me here the file stdout.txt which it creates
(08:54:48 PM) ¿Jonte?«KJack: k
(08:55:12 PM) ¿Jonte?«KJack: after i test with new one u mean?
(08:56:00 PM) pelya: Post the old one and the new one if it fails.
(08:56:23 PM) ¿Jonte?«KJack: Uhm i tested and got error, but this time the bugreport didnt came up
(08:56:43 PM) pelya: Which Beta you're using?
(08:56:51 PM) ¿Jonte?«KJack: this was beta 5
(08:57:20 PM) pelya: Should work, dunno why it crashed. Plz stdout.txt here :)
(08:57:26 PM) ¿Jonte?«KJack: k
(08:57:37 PM) ¿Jonte?«KJack is offering to send file stdout.txt
(08:57:46 PM) Starting transfer of stdout.txt from ¿Jonte?«KJack
(08:57:52 PM) Transfer of file stdout.txt complete
(09:01:00 PM) pelya: Umm. Maybe you deleted the [CPU] Kamikazee! worm profile?
(09:01:10 PM) ¿Jonte?«KJack: ohh
(09:01:23 PM) ¿Jonte?«KJack: ok i shall
(09:01:53 PM) ¿Jonte?«KJack: dont have it
(09:02:03 PM) ¿Jonte?«KJack: have listed with 1 2 3 etc not names
(09:03:05 PM) pelya: Plz add computer worm with name "[CPU] Kamikazee!" in the OLX.
(09:03:29 PM) ¿Jonte?«KJack: does it use that exact cpu? xD
(09:04:41 PM) pelya: Or remove the file "C:\Documents and Settings\test\Mina dokument\OpenLieroX\cfg\players.dat" :) - it will use default one then.
(09:05:14 PM) ¿Jonte?«KJack: :D
(09:05:17 PM) ¿Jonte?«KJack: think it works dude
(09:05:18 PM) pelya: Yeah, for game to run it should add at least one local worm, and that's [CPU] Kamikazee ;)
(09:05:34 PM) ¿Jonte?«KJack: too bad i cant use another name tho :)
(09:06:11 PM) pelya: Which one you want to use? I may rebuild the .EXE for you now :P
(09:06:31 PM) pelya: But it should be computer worm, not human.
(09:06:40 PM) ¿Jonte?«KJack: Ok :) it works now btw xD
(09:06:43 PM) ¿Jonte?«KJack: i want the name
(09:06:50 PM) ¿Jonte?«KJack: |LaG| cpu
(09:06:53 PM) pelya: MAybe later I'll add that in config.
(09:07:23 PM) ¿Jonte?«KJack: now im gonna dive into the dedicated control and have fun :)
(09:12:16 PM) ¿Jonte?«KJack: And found something, using the stop_dedicated doesnt remove the OpenLierioX_dedicated process
(09:18:20 PM) pelya: Ahh, will fix now.
(09:26:23 PM) ¿Jonte?«KJack: i was wondering about the game start procedure.. Shouldnt it be like: When x ammounts of player have join -> countdown from y until match starts? :P
(09:26:53 PM) ¿Jonte?«KJack: The change preset countdown is good though :P
(09:27:30 PM) pelya: Already not, you may fix that in your script if you liked it that way (I think it's useless spam)
(09:27:57 PM) ¿Jonte?«KJack: it seemed my server started even though not enough players where in
(09:30:54 PM) ¿Jonte?«KJack: def startWithMinWorms(amount = 6 ....
(09:31:06 PM) ¿Jonte?«KJack: changed that but it still starts with 3
(09:32:08 PM) pelya: Yeah, the number 3 is lower in that file, when it's called
(09:32:27 PM) ¿Jonte?«KJack: so what do i need to change it too to get 6 xD
(09:33:12 PM) pelya: You should change only there, but if you change both nothing bad happens
(09:33:31 PM) ¿Jonte?«KJack: what is the other in "both" ?
(09:34:51 PM) ¿Jonte?«KJack: found the other xD
(09:37:25 PM) ¿Jonte?«KJack: Oi, it says "Game will start with min 6 players" but when 6 players have joined it starts xD
(09:37:26 PM) pelya: I've updated my post - http://www.4shared.com/file/42806463/434d1ef7/OLX_r2021_DedicatedServerForWindows.html , add that |LaG| cpu worm and edit line #280 of dedicated_control - change startLobby() to startLobby("|LaG| cpu") . Note also that cpu worm is killed when the game starts, so you may set it name to "Hosted by |LaG| Kjack"
(09:37:30 PM) ¿Jonte?«KJack: so it should stand min
(09:37:31 PM) ¿Jonte?«KJack: :D
(09:38:15 PM) pelya: Yeah, the max worms is set in line 287
(09:38:31 PM) pelya: It's the min worms.
(09:38:54 PM) pelya: And if there 4 or more worms (line 302) it will switch to Team DM.
(09:39:40 PM) pelya: So, you already know how to write preset?
(09:39:40 PM) ¿Jonte?«KJack: ye i kno, i raised that cuz i didnt want tdm xD
(09:39:46 PM) ¿Jonte?«KJack: yes yes
(09:40:14 PM) ¿Jonte?«KJack: but i dont get how there can come more than 6 players when i set it to min. cuz the game starts direct when the 6 player comes
---
(09:46:57 PM) pelya: Yeah, that's for the first game. After the round the server will wait 20 seconds in lobby for new players.
(09:47:01 PM) ¿Jonte?«KJack: Ohhh im stupid :(
(09:47:09 PM) ¿Jonte?«KJack: is it the maxWait im looking for?
(09:47:24 PM) ¿Jonte?«KJack: xD
(09:48:34 PM) pelya: Nope, maxWait is the time when preset changes if that's not enough players.
(09:51:14 PM) pelya: If you want the game to be started in some time, like it does so with Auto Start button, insert "chatMsg("Game will start soon"); WaitInLobby(30)" before startGame(), line 257
(09:51:54 PM) ¿Jonte?«KJack: so i put it before startgame() ? :D
(09:51:59 PM) ¿Jonte?«KJack: great
(09:52:59 PM) ¿Jonte?«KJack: but shouldnt i add a check too see if the minplayers is true? xD
(09:53:10 PM) ¿Jonte?«KJack: so not all leaves and game starts
(09:56:56 PM) pelya: If you want game aborted in the middle you may add "if len(worms) < 6: startLobby("|LaG" bot")" but that will restart server and kick all players from it
(09:57:40 PM) ¿Jonte?«KJack: oh
(09:57:42 PM) pelya: Maybe I'll add less destructive way of going into lobby tomorrow.
(09:57:57 PM) ¿Jonte?«KJack: well its good now anyways
(09:58:05 PM) ¿Jonte?«KJack: thx for help :)
(10:00:43 PM) pelya: Oh, you may put "setvar GameServer.TimeLimit 0.1" to limit game time to 5 seconds instead of calling startLobby() :) quick dirty solution
(10:01:33 PM) pelya: Oh, I mean "setvar("GameServer.TimeLimit","0.1")"
(10:01:52 PM) ¿Jonte?«KJack: i put that where
(10:02:51 PM) pelya: In line 263, after updateWorms(sig), insert another line: if len(worms) < 6: setvar("GameServer.TimeLimit","0.1")
(10:03:52 PM) ¿Jonte?«KJack: And this does exactly?
(10:04:34 PM) pelya: It will end the game in 5 seconds if someone leaves during the game and player amount will be less than 6.
(10:04:59 PM) pelya: Without kicking existing clients
(10:05:02 PM) ¿Jonte?«KJack: not during the game xD
(10:05:16 PM) ¿Jonte?«KJack: during the countdown until the game starts i meant =O
(10:07:41 PM) pelya: Ahh, then don't add that, add to line 257 before startGame: if len(worms) < 6: return False
(10:08:29 PM) ¿Jonte?«KJack: ;)
(10:09:45 PM) pelya: Oh, and also you may copy this conversation to "help with dedicated server" thread - name it "Kjack's story of success" :P
(10:09:47 PM) ¿Jonte?«KJack: should i put it infront or after that line
(10:10:12 PM) pelya: You should insert new line before startGame()
(10:10:16 PM) pelya: And put it there.
(10:10:38 PM) ¿Jonte?«KJack: I have allready put the countdown thing before that
(10:10:44 PM) ¿Jonte?«KJack: u said i would put it on that line
(10:11:04 PM) pelya: Remember to put correct indentation - you should put 12 spaces before it, Python works that way.
(10:11:20 PM) ¿Jonte?«KJack: yes im using notepad++ no worries
(10:11:22 PM) pelya: Yeah, between the countdown and the startGame()
(10:11:26 PM) pelya: :)
(10:11:54 PM) ¿Jonte?«KJack: Great! :)
(10:12:00 PM) ¿Jonte?«KJack: will test around now
(10:13:27 PM) pelya: So, what's the name of your server?
(10:13:46 PM) ¿Jonte?«KJack: |Lame ass Gaming Dedicated| something :)
(10:14:41 PM) pelya: Why it's not on serverlist? :(
(10:15:57 PM) ¿Jonte?«KJack: idk something is wrong
(10:18:14 PM) pelya: You unchecked "Register server" checkbox in your normal OLX maybe?
(10:18:48 PM) pelya: What does it write to stdout.txt? Does it write about any Python error?
(10:19:02 PM) ¿Jonte?«KJack: i had 2 bots named |LaG| cpu
(10:19:06 PM) ¿Jonte?«KJack: maybe that?
(10:19:09 PM) ¿Jonte?«KJack: im testing again
(10:19:40 PM) pelya: Huh, I thought that's not possible :)
(10:19:47 PM) ¿Jonte?«KJack: xD
(10:20:11 PM) ¿Jonte?«KJack: damn it
(10:20:18 PM) pelya: Nope, you're not in list. stdout.txt here plz :)
(10:20:34 PM) ¿Jonte?«KJack is offering to send file stdout.txt
(10:20:41 PM) Starting transfer of stdout.txt from ¿Jonte?«KJack
(10:20:45 PM) ¿Jonte?«KJack: prob something i did in the dedicated_control
(10:20:47 PM) Transfer of file stdout.txt complete
(10:22:19 PM) ¿Jonte?«KJack: i think it may be the startLobby("|LaG| cpu") ?
(10:25:16 PM) pelya: Nope, if you use new .ZIP file it works okay - just tested.
(10:25:39 PM) ¿Jonte?«KJack: okey
(10:26:39 PM) pelya: It may be IP to country database - start up your normal OLX, and enable in options Load IP-to-coutry DB at startup, or disable IP-to-coutry DB at all, then exit OLX so it will save config.
(10:26:44 PM) pelya: And try again.
(10:27:04 PM) ¿Jonte?«KJack: but it worked before i started changing the dedicated cotrol
(10:27:57 PM) pelya: Umm, dunno why it worked before :D
(10:28:04 PM) pelya: Should crash
(10:28:11 PM) ¿Jonte?«KJack: why?
(10:29:26 PM) pelya: Oh, forget it, just restart :)
(10:31:38 PM) pelya: Or maybe you put some extra space in that startLobby("|LaG| cpu") and it cannot find it, try removing "|LaG| cpu"
(10:31:38 PM) ¿Jonte?«KJack: :(
(10:31:50 PM) ¿Jonte?«KJack: i removed that just now
(10:31:54 PM) ¿Jonte?«KJack: didnt work
(10:32:22 PM) pelya: Send me your dedicated_control plz.
(10:32:27 PM) ¿Jonte?«KJack: lol
(10:32:35 PM) ¿Jonte?«KJack: i messed somewhere in it im sure ..
(10:32:54 PM) ¿Jonte?«KJack is offering to send file dedicated_control
(10:33:01 PM) Starting transfer of dedicated_control from ¿Jonte?«KJack
(10:33:06 PM) pelya: I won't use your server name and your 1337 settings ;)
(10:33:08 PM) Transfer of file dedicated_control complete
(10:33:18 PM) ¿Jonte?«KJack: lol
(10:34:53 PM) ¿Jonte?«KJack: maybe it was cuz i put a smiley in a message? xD
(10:35:16 PM) ¿Jonte?«KJack: I think that may be it xD
(10:36:14 PM) ¿Jonte?«KJack: or not
(10:37:53 PM) pelya: Nope, I'll fix it now. That's because you used Tab instead of 4 spaces and Python cursed on you
(10:38:05 PM) ¿Jonte?«KJack: =O xD
(10:38:10 PM) ¿Jonte?«KJack: where did i use tab?
(10:38:20 PM) ¿Jonte?«KJack: only used enter as much as i remember
(10:38:33 PM) ¿Jonte?«KJack: notepad++ does the spacing by itself
(10:38:50 PM) pelya: Seems that it configured that way.
(10:39:13 PM) ¿Jonte?«KJack: but its much possible that i used tab :))
(10:39:25 PM) ¿Jonte?«KJack: on which line was it?
(10:41:26 PM) Offering to send dedicated_control to ¿Jonte?«KJack
(10:41:35 PM) Transfer of file dedicated_control complete
(10:41:37 PM) ¿Jonte?«KJack: thx :)
(10:42:04 PM) pelya: Should work. Also finishes game early if ppl exit in weapon selection screen.
(10:42:13 PM) pelya: But not in game
(10:42:17 PM) ¿Jonte?«KJack: cool
(10:42:18 PM) ¿Jonte?«KJack: :)
(10:43:00 PM) ¿Jonte?«KJack: Join the server :)
(10:53:21 PM) pelya: Oh stupid me, should write "if len(worms) < amount" instead of "if len(worms) < 6" everywhere. Don't forget to change that "6" in 4 places!
(10:54:34 PM) pelya: Nope, your script works perfectly fine for me
(10:57:05 PM) pelya: Oh, you've started it and playing. So, gotta go home already or metro will close and I will spend the night in the office and I don't want that, so goodbye and happy hosting :D
(10:57:53 PM) ¿Jonte?«KJack: :D
(10:58:00 PM) pelya: I'll post that conversation on lxalliance if you won't mind
(10:58:09 PM) ¿Jonte?«KJack: xD ok
(10:58:14 PM) ¿Jonte?«KJack: ty!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment