cassius Posted May 14, 2016 Share Posted May 14, 2016 I decided to try learning lua script as a change from c++. I created a new project using advanced fp shooter template, but when I run it I just get a frozen screen containing a cube. Is there more to it than that? What to do next? Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
extenz Posted May 14, 2016 Share Posted May 14, 2016 File -> Open -> 07-AI and Events.map Cool little map But it mostly depends on what you want to do Quote Link to comment Share on other sites More sharing options...
cassius Posted May 14, 2016 Author Share Posted May 14, 2016 Ah thanks. I see how it works now. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
cassius Posted May 15, 2016 Author Share Posted May 15, 2016 how do I get rid of 07-AI and Events.map and replace it with my own terrain based map without losing the gun. I tried getting rid of all the models but when game runs they are still there.. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
macklebee Posted May 15, 2016 Share Posted May 15, 2016 Look at the 'Main.lua' script. Load the map you want to load. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
cassius Posted May 15, 2016 Author Share Posted May 15, 2016 Is this the code you refer to. --Load the next map Time:Pause() if Map:Load("Maps/"..changemapname..".map")==false then return end Time:Resume() changemapname = nil end Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
macklebee Posted May 15, 2016 Share Posted May 15, 2016 No, I am referring to the Map:Load() before the main loop: --Load a map local mapfile = System:GetProperty("map","Maps/start.map") if Map:Load(mapfile)==false then return end Just load the name of your map instead of the default start.map Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
cassius Posted May 16, 2016 Author Share Posted May 16, 2016 ok. thanks Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
cassius Posted May 16, 2016 Author Share Posted May 16, 2016 When I change the map I lose the gun and contrtroller Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.