Now echoing Luprex console messages to the Unreal Log as well. Had to make them warnings in order to make them more visible, which in turn meant I had to modify the BreakToDebugger system to be able to ignore these console messages.
This commit is contained in:
@@ -35,7 +35,7 @@ end
|
||||
function login.init(self, config)
|
||||
local player = global.get("nextplayer")
|
||||
global.set("nextplayer", player + 1)
|
||||
dprintf("login.init initializing %p, player %d", self, player)
|
||||
printf("login.init initializing %p, player %d", self, player)
|
||||
self.player = player
|
||||
self.color={0,0,0,0,0,0,0,0,0,0,0,0}
|
||||
self.kills=0
|
||||
@@ -45,7 +45,7 @@ function login.init(self, config)
|
||||
end
|
||||
|
||||
function login.startscanning()
|
||||
dprintf("Scanning started. Actor=%p Place=%p", actor, place)
|
||||
printf("Scanning started. Actor=%p Place=%p", actor, place)
|
||||
while true do
|
||||
login.onescan()
|
||||
wait(1)
|
||||
@@ -75,7 +75,7 @@ end
|
||||
|
||||
-- This gets called on the admin user. You can call login.init in here if you want.
|
||||
function world.init(self, config)
|
||||
dprint("world.init")
|
||||
print("world.init")
|
||||
global.set("nextplayer", 0)
|
||||
tangible.build{class=roster, anim={plane="earth", xyz={2000,0,0} } }
|
||||
tangible.build{class=cube, anim={plane="earth", xyz={500,-100,0}, mat_color={1,0,0}}}
|
||||
@@ -89,7 +89,7 @@ function roster.init(self,config)
|
||||
end
|
||||
|
||||
function world.buildpylon()
|
||||
dprint("Building pylon")
|
||||
print("Building pylon")
|
||||
local radius=1000
|
||||
tangible.build{class=pylon,plane="earth",xyz={math.random(-radius,radius),math.random(-radius,radius),0}}.color=math.random(1,12)
|
||||
end
|
||||
@@ -110,29 +110,29 @@ end
|
||||
|
||||
-- Four cases: Unnamed to new, Unnamed to existing, Named to new, Named to Existing
|
||||
function playas(who)
|
||||
dprintf("Playas %lP",place)
|
||||
printf("Playas %lP",place)
|
||||
if not actor.name and not place.character[who] then -- Unnamed to new
|
||||
dprintf("Case 1: Naming this character "..who)
|
||||
printf("Case 1: Naming this character "..who)
|
||||
actor.name=who
|
||||
tangible.keepactor(actor)
|
||||
place.character[who]=actor
|
||||
elseif actor.name and not place.character[who] then -- Named to new (Hard one)
|
||||
dprintf("Case 2: Creating new character "..who)
|
||||
dprintf("Case 2.0")
|
||||
printf("Case 2: Creating new character "..who)
|
||||
printf("Case 2.0")
|
||||
local nc=tangible.build{class=login, anim={plane="earth", xyz={0,0,0} } }
|
||||
dprintf("Case 2.1")
|
||||
printf("Case 2.1")
|
||||
nc.name=who
|
||||
dprintf("Case 2.2")
|
||||
printf("Case 2.2")
|
||||
tangible.keepactor(nc)
|
||||
dprintf("Case 2.3")
|
||||
printf("Case 2.3")
|
||||
place.character[who]=nc
|
||||
dprintf("Case 2.4: ...Place is now "..place)
|
||||
printf("Case 2.4: ...Place is now "..place)
|
||||
tangible.redirect(actor,nc)
|
||||
elseif not actor.name and place.character[who] then
|
||||
dprintf("Case 3: Logging in from unnamed to existing character "..who)
|
||||
printf("Case 3: Logging in from unnamed to existing character "..who)
|
||||
tangible.redirect(actor,place.character[who])
|
||||
elseif actor.name and place.character[who] then
|
||||
dprintf("Case 4: Logging in from "..actor.name.." to existing character "..who)
|
||||
printf("Case 4: Logging in from "..actor.name.." to existing character "..who)
|
||||
tangible.redirect(actor,place.character[who])
|
||||
end
|
||||
end
|
||||
@@ -144,24 +144,24 @@ function roster.lookmenu(add)
|
||||
end
|
||||
|
||||
function cube.lookmenu(add)
|
||||
add("Cube A", function () dprint("Doing Cube A") end)
|
||||
add("Cube B", function () dprint("Doing Cube B") end)
|
||||
add("Cube C", function () dprint("Doing Cube C") end)
|
||||
add("Cube Hi", function () dprint("Doing Cube Hi") end)
|
||||
add("Cube Bye", function () dprint("Doing Cube Bye") end)
|
||||
add("Cube Yo", function () dprint("Doing Cube Yo") end)
|
||||
add("Cube Z", function () dprint("Doing Cube Z") end)
|
||||
add("Cube A", function () print("Doing Cube A") end)
|
||||
add("Cube B", function () print("Doing Cube B") end)
|
||||
add("Cube C", function () print("Doing Cube C") end)
|
||||
add("Cube Hi", function () print("Doing Cube Hi") end)
|
||||
add("Cube Bye", function () print("Doing Cube Bye") end)
|
||||
add("Cube Yo", function () print("Doing Cube Yo") end)
|
||||
add("Cube Z", function () print("Doing Cube Z") end)
|
||||
end
|
||||
|
||||
|
||||
function sphere.lookhotkeys(add)
|
||||
add("FaceL", "Sphere Hi", function () dprint("Doing Sphere Hi") end)
|
||||
add("FaceM", "Sphere Bye", function () dprint("Doing Sphere Bye") end)
|
||||
add("FaceR", "Sphere Yo", function () dprint("Doing Sphere Yo") end)
|
||||
add("FaceL", "Sphere Hi", function () print("Doing Sphere Hi") end)
|
||||
add("FaceM", "Sphere Bye", function () print("Doing Sphere Bye") end)
|
||||
add("FaceR", "Sphere Yo", function () print("Doing Sphere Yo") end)
|
||||
end
|
||||
|
||||
function sphere.tick(foo)
|
||||
dprint("Tick")
|
||||
print("Tick")
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user