I am working on a game server in Ruby, and during testing I have problems testing different components Coming out I was not getting the output from my launcher, only the server, so I made the initial announcement of the server - Eclipse still shows the output from the server!
Then I went to the command line, assumed that the eclipse was looking at the wrong file (git had messed it up in advance, but as you can see, the stack trace shows that < Code> Server.rb is fully implemented from line 5: This file contains text content: and terminal output: Without this type of file I need a file, and should it be? I can not tell without seeing the squares, but I think At the top of the program, you are running the second file (or not saving it after saving the file) and you are doing the same yourself should do the trick After the discussion, it seems that one-third option is the code in the required_related 'server' :
puts in class launcher" file Saved at # E {file.mtime ($ 0)} "require_relative 'server' require_relative 'game' # STDOUT.sync = true says" launcher started "#server = Server.new print" created server "game = Game.new # ServerThread = Thread.new {server.start ()} gameThread = Thread.new {game.start ()} while (running) print "stop?" Input = gets.chomp if (input.equals? ("Yes ")) Running = false end-end server.stop. Stop gameThread.join serverThread.join end
C: \ Users \ gossfunkel \ Git \ citadelserver \ RubyCitadelServer & gt; Manic Launcher RB file saved on 2013-06-22 18:16:44 +0100 server 2013-06-22 18:16:47 Starting at +0100 ... C: / user / gosfankel / git / Citadelserver / rubycitadel server / server rb: 20: `in recvfro meter 'from c:` time interrupt with c: /Users/gossfunkel/git/citadelserver/rubyCitadelServer/Server.rb: 2 0': / users / gossfunkel / git / Citadelserver / RubyCitadelServer / Server.rb: 1 5: 'Initially': /Users/gossfunkel/git/citadelserver/RubyCitadelServer/Server.rb: 3 0: in `& lt; Category: From C Server & gt; From C: / users / gossfunkel / git /citadelserver/RubyCitadelServer/Server.rb:1: `of & lt; Top (required) & gt; From 'Launcher.rb: 5: `in need_relative' from Launcher.rb: 5: in` & lt; Category: Launcher & gt; 'From
Game.start is doing more than you think, and for this the server is starting to do as your subject line shows, the file you edit
insert by entering
to
"file saved at # {file.mtime ($ 0)}"
Server.pm and creates a server Also defines the class as well. Lines using the
Server class also need to delete the
requirement . < / Ul>
No comments:
Post a Comment