Changeset 8858 for code/trunk/data
- Timestamp:
- Aug 23, 2011, 12:45:53 AM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 1 deleted
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore
-
old new 1 1 build 2 2 codeblocks 3 vs 3 4 dependencies
-
- Property svn:mergeinfo changed
/code/branches/output (added) merged: 8739-8740,8765,8771-8772,8774-8780,8787-8789,8794-8799,8801,8803-8812,8814,8816-8817,8820,8822,8825-8837,8840,8844,8846,8848-8850,8853-8854
- Property svn:ignore
-
code/trunk/data/gui/scripts/GameplayMenu.lua
r6746 r8858 18 18 function P.GameplayThemeCombobox_changed(e) 19 19 -- theme 20 logMessage(0,"event: theme")20 orxout("event: theme") 21 21 end 22 22 23 23 function P.GameplayDifficultyEasyButton_clicked(e) 24 24 -- difficulty easy 25 logMessage(0,"event: easy")25 orxout("event: easy") 26 26 end 27 27 28 28 function P.GameplayDifficultyNormalButton_clicked(e) 29 29 -- difficulty normal 30 logMessage(0,"event: normal")30 orxout("event: normal") 31 31 end 32 32 33 33 function P.GameplayDifficultyHardButton_clicked(e) 34 34 -- difficulty hard 35 logMessage(0,"event: hard")35 orxout("event: hard") 36 36 end 37 37 -
code/trunk/data/gui/scripts/MultiplayerMenu.lua
r8079 r8858 117 117 local listbox = winMgr:getWindow("orxonox/MultiplayerListbox") 118 118 CEGUI.toListbox(listbox):resetList() 119 local discovery = orxonox.WANDiscovery :getInstance()120 cout(0, "discovering.\n" )119 local discovery = orxonox.WANDiscovery() 120 orxout("discovering." ) 121 121 discovery:discover() 122 cout(0, "discovered.\n" )122 orxout("discovered." ) 123 123 P.serverList = {} 124 124 local index = 0 -
code/trunk/data/gui/scripts/NotificationLayer.lua
r8729 r8858 136 136 if index > queue.first then -- Move all older notifications up in the list. 137 137 for i=index-1,-1,queue.first do 138 cout(0,i)138 orxout(i) 139 139 item = queue.items[i] 140 140 item:setYposition(CEGUI.UDim(0, itemHeight*(queue.last-i-1))) -
code/trunk/data/gui/scripts/QuestGUI.lua
r8706 r8858 220 220 function P.selectQuest(list, quest) 221 221 if quest == nil then -- If the input quest is nil, there is nothing to be selected, an error is output and the first quest is selected instead. 222 cout(1, "Error in QuestGUI: selectQuest(), input quest is nil. Selecting first.")222 orxout(orxonox.level.internal_error, "Error in QuestGUI: selectQuest(), input quest is nil. Selecting first.") 223 223 list:setItemSelectState(list:getListboxItemFromIndex(0), true) -- Select first 224 224 return … … 240 240 list:setItemSelectState(list:getListboxItemFromIndex(index), true) 241 241 else -- If the quest isn't found an error is output and the first quest is selected instead. 242 cout(1, "Error in QuestGUI: selectQuest(), input quest is not in list. Selecting first.")242 orxout(orxonox.level.internal_error, "Error in QuestGUI: selectQuest(), input quest is not in list. Selecting first.") 243 243 list:setItemSelectState(list:getListboxItemFromIndex(0), true) -- Select first 244 244 end … … 313 313 end 314 314 else 315 cout(1, "Error in QuestGUI: changeToSubquest(), quest was nil. Ignoring...")315 orxout(orxonox.level.internal_error, "Error in QuestGUI: changeToSubquest(), quest was nil. Ignoring...") 316 316 end 317 317 end -
code/trunk/data/levels/presentationDM.oxw
r8706 r8858 16 16 name = "Presentation" 17 17 description = "A simple testlevel" 18 gametype = Deathmatch 18 19 > 19 20 <templates> … … 46 47 for i = 1, 100, 1 do 47 48 j = math.random() 49 scale = j * 50 + 5 48 50 ?> 49 <MovableEntity position="<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000 - 2000) ?>" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass="<?lua print( j * 50) ?>" scale="<?lua print(j * 5) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">51 <MovableEntity position="<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000 - 2000) ?>" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 50 52 <attached> 51 <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />53 <Model scale="<?lua print(scale) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> 52 54 </attached> 53 55 <collisionShapes> 54 <SphereCollisionShape radius="<?lua print( j * 70) ?>" />56 <SphereCollisionShape radius="<?lua print(scale * 2.5) ?>" /> 55 57 </collisionShapes> 56 58 </MovableEntity> -
code/trunk/data/levels/templates/FPS.oxt
r7679 r8858 30 30 31 31 <?lua 32 include(" includes/weaponSettingsFPS.oxi")32 include("../includes/weaponSettingsFPS.oxi") 33 33 ?> 34 34 -
code/trunk/data/levels/templates/spaceshipAssff.oxt
r8857 r8858 56 56 </collisionShapes> 57 57 <?lua 58 include(" includes/weaponSettingsAssff.oxi")58 include("../includes/weaponSettingsAssff.oxi") 59 59 ?> 60 60 </SpaceShip> -
code/trunk/data/levels/templates/spaceshipAssff2.oxt
r8857 r8858 56 56 </collisionShapes> 57 57 <?lua 58 include(" includes/weaponSettingsAssff2.oxi")58 include("../includes/weaponSettingsAssff2.oxi") 59 59 ?> 60 60 </SpaceShip> -
code/trunk/data/levels/templates/spaceshipGhost.oxt
r8857 r8858 53 53 </collisionShapes> 54 54 <?lua 55 include(" includes/weaponSettingsGhost.oxi")55 include("../includes/weaponSettingsGhost.oxi") 56 56 ?> 57 57 </SpaceShip> -
code/trunk/data/levels/templates/spaceshipH2.oxt
r8706 r8858 22 22 23 23 <?lua 24 include(" includes/weaponSettingsH2.oxi")24 include("../includes/weaponSettingsH2.oxi") 25 25 ?> 26 26 <engines> -
code/trunk/data/levels/templates/spaceshipHXY.oxt
r8706 r8858 37 37 38 38 <?lua 39 include(" includes/weaponSettingsHXY.oxi")39 include("../includes/weaponSettingsHXY.oxi") 40 40 ?> 41 41 </SpaceShip> -
code/trunk/data/levels/templates/spaceshipHXYSL.oxt
r8706 r8858 36 36 37 37 <?lua 38 include(" includes/weaponSettingsHXY.oxi")38 include("../includes/weaponSettingsHXY.oxi") 39 39 ?> 40 40 </SpaceShip> -
code/trunk/data/levels/templates/spaceshipPirate.oxt
r8857 r8858 55 55 56 56 <?lua 57 include(" includes/weaponSettingsPirate.oxi")57 include("../includes/weaponSettingsPirate.oxi") 58 58 ?> 59 59 </SpaceShip> -
code/trunk/data/levels/templates/spaceshipSwallow.oxt
r8857 r8858 50 50 </collisionShapes> 51 51 <?lua 52 include(" includes/weaponSettingsSwallow.oxi")52 include("../includes/weaponSettingsSwallow.oxi") 53 53 ?> 54 54 </SpaceShip> -
code/trunk/data/levels/templates/spaceshipTransporter.oxt
r8706 r8858 36 36 37 37 <?lua 38 include(" includes/weaponSettingsTransporter.oxi")38 include("../includes/weaponSettingsTransporter.oxi") 39 39 ?> 40 40 </SpaceShip> -
code/trunk/data/levels/templates/spaceshipTransporterSL.oxt
r8706 r8858 36 36 37 37 <?lua 38 include(" includes/weaponSettingsTransporter.oxi")38 include("../includes/weaponSettingsTransporter.oxi") 39 39 ?> 40 40 </SpaceShip> -
code/trunk/data/lua/LuaStateInit.lua
r6746 r8858 7 7 end 8 8 9 -- Create function to log text like COUT, but always prints a line! 10 logMessage = function(level, message) 11 luaState:luaLog(level, message) 9 -- Prints output to the console and the logfile 10 -- 11 -- Accepts the following arguments: 12 -- orxout("message") 13 -- orxout(orxonox.level.levelname, "message") 14 -- orxout(orxonox.level.levelname, "context", "message) 15 orxout = function(arg1, arg2, arg3) 16 if arg1 and arg2 and arg3 then 17 luaState:luaOutput(arg1, arg2, arg3) 18 elseif arg1 and arg2 then 19 luaState:luaOutput(arg1, arg2) 20 else 21 luaState:luaOutput(arg1) 22 end 12 23 end 13 cout = logMessage14 24 15 25 -- Redirect dofile in order to load with the resource manager … … 42 52 require = function(moduleName) 43 53 if not luaState:fileExists(moduleName .. ".lua") then 44 logMessage(2, "Warning: Lua function require() could not find file '" .. moduleName .. ".lua' ")54 orxout(orxonox.level.internal_warning, "Warning: Lua function require() could not find file '" .. moduleName .. ".lua' ") 45 55 return nil 46 56 end … … 85 95 -- Fallback pause function 86 96 pause = function() 87 logMessage(2, [["Warning: debug() called in Lua, but Debugger is not active.97 orxout(orxonox.level.internal_warning, [["Warning: debug() called in Lua, but Debugger is not active. 88 98 Do you have the IOConsole disabled and are you using Lua version 5.1?"]]) 89 99 end … … 98 108 end 99 109 -- Display the error message 100 logMessage(1, "Lua runtime error: "..err)110 orxout(orxonox.level.internal_error, "Lua runtime error: "..err) 101 111 end 102 112 … … 106 116 else 107 117 -- Fallback: print stack trace 108 logMessage(3, debug.traceback(""))118 orxout(orxonox.level.internal_error, debug.traceback("")) 109 119 end 110 120 return err -- Hello Lua debugger user! Please type 'set 2' to get to the -
code/trunk/data/overlays/debug.oxo
r8706 r8858 40 40 <Template name="defaultHUD"> 41 41 <OverlayGroup name = "defaultHUD" scale = "1, 1"> 42 <ChatOverlay43 name = "chat"44 position = "0.03, 0.08"45 font = "VeraMono"46 caption = ""47 textsize = 0.02548 />49 50 42 <KillMessage 51 43 name = "killmessage" … … 84 76 /> 85 77 78 <ChatOverlay 79 name = "chat" 80 position = "0.03, 0.08" 81 font = "VeraMono" 82 caption = "" 83 textsize = 0.025 84 /> 85 86 86 </OverlayGroup> 87 87 </Template> -
code/trunk/data/tcl/init.tcl
r7914 r8858 169 169 foreach {channel s} $input break 170 170 171 if {$channel == "stdout" || $channel == "stderr"} { 172 execute puts $newline $s 171 if {$channel == "stdout"} { 172 execute log $s 173 } elseif {$channel == "stderr"} { 174 execute error $s 173 175 } else { 174 176 eval [concat ::tcl::puts $args]
Note: See TracChangeset
for help on using the changeset viewer.