Jump to content

wayneg

Members
  • Posts

    115
  • Joined

  • Last visited

Everything posted by wayneg

  1. would this be the right path to success? Get Sqlite3 here: https://www.sqlite.org/download.html Get DLL here: https://www.dll-files.com/lua5.1.dll.html Rename Lua5.1.dll to sqlite3.dll regsvr32 C:\Windows\System32\sqlite3.dll Directory of C:\Temp <DIR> luasql lua5.1.exe sqlite3.dll hello.lua require "luasql.sqlite3" env = luasql.sqlite3() conn = env:connect("test.sqlite") assert(conn:execute("create table if not exists tbl1(one varchar(10), two smallint)")) assert(conn:execute("insert into tbl1 values('hello!',10)")) assert(conn:execute("insert into tbl1 values('goodbye',20)")) cursor = assert(conn:execute("select * from tbl1")) row = {} while cursor:fetch(row) do print(table.concat(row, '|')) end cursor:close() conn:close() env:close()
  2. Do you think tcp and udp will be on different thread?
  3. Will the leadwerks client use a separate thread to send and receive packets?
  4. When I see something this it makes me think, and understand where the bottlenecks occur and why. This may require different design approaches, and let's face it, in the end it's all about performance.
  5. wayneg

    Vegetation Demo

    Looks like great start, and I love the performance, just wondering: Whats the algorithm for tree generation look like? What parameters are available to the algorithm ? If I decide a tree at x,y,z doesn't exist anymore is it easy to not show it? Can I add extra stuff like algorithm for rocks, flowers ?
  6. While beta drivers fixed LE it impacted some my newer games, ugh. Maybe AMD gets there act together before windows 10.
  7. Windows update clearly fixed the issue on integrated graphics intel machine. Who would of thought.
  8. Can't wait for commercial version of Oculus VR, let's hope more Leadwerks goodness follows! Imagine nice sunny day, sandy beach, wind, waves, and a few birds all this on cold winters day, Relax while Leadwerks and Oculus take you away. Ahhhhh
  9. So what would Rick charge to flattened the RakNet classes and make it more procedural, and have Functions like: Connect(), Host(), CreateBitStream(), WriteBitStream(), ReadBitStream(), Send(), NetworkLoop(), BindEvent() ? What would a new user need to do ? Would a simple chat program be good example? What limitations might there be?
  10. This possible for LUA script, or C++ ? This something I can add ?
  11. Be nice to see normals and flip one or more faces.
  12. LE 3.1 (current) - could duplicate to some degree the issue, but also had stability issues while using GUI. LE 3.1 (beta) - could NOT duplicate issues, beta was fast and had no stability issues that I encountered. note: perhaps a terrain is required, but I didn't try that.
  13. cool, like to check it out, maybe learn something new.
  14. Josh, Doesn't this seem to suggest a solution, especially since the objects in question are static ? Or maybe he just hides that stuff once he enters his structure ? http://http.developer.nvidia.com/GPUGems2/gpugems2_chapter06.html
  15. I published the attached file named: 'Doom' Sorry it's exe, but that's what publish does. I run the setup, and it installs, but when the App is started it hangs showing the command window. LE 3.1 Windows not beta, Win 7 ATI HD 7950 My Lua App start is told not to initialize Steam. Ok now the good stuff, when I copy my steam_appid.txt file into c:\Program FIle (x86)\Doom the App will run as expected ! and within the Apps window I see a steam message pops up that says, 'Access steam while playing, wtf? Thought that was turned off in App Start ?? 1. This didn't work this way a few days ago, I could publish, setup and run, with no problem. 2. What's up with Steam flashing: 'Access the Steam Community while playing..' ? 3. Why does the esc key no longer exit ? 4. Whats up with me having to copy my appid file into the published directory in order to run ? 5. Can anyone else run this published file ?? --This function will be called once when the program starts function App:Start() --Initialize Steamworks (optional) --Steamworks:Initialize() --Set the application title self.title="Leadwerks Doom 1.0" --Create a window self.window=Window:Create(self.title) self.window:HideMouse() --Create the graphics context self.context=Context:Create(self.window,0) if self.context==nil then return false end --Create a world self.world=World:Create() --Load a map local mapfile = System:GetProperty("map","Maps/start.map") if Map:Load(mapfile)==false then return false end self.sound1=nil self.sound1 = Sound:Load("Sound/Music/d_e1m1.wav") self.sound1:Play() return true end --This is our main program loop and will be called continuously until the program ends function App:Loop() --If window has been closed, end the program if self.window:Closed() or self.window:KeyDown(Key.Escape) then return false end --Update the app timing Time:Update() --Update the world self.world:Update() --Render the world self.world:Render() --Render statistics self.context:SetBlendMode(Blend.Alpha) if DEBUG then self.context:SetColor(1,0,0,1) self.context:DrawText("Debug Mode",2,2) self.context:SetColor(1,1,1,1) self.context:DrawStats(2,22) self.context:SetBlendMode(Blend.Solid) else --Toggle statistics on and off if (self.window:KeyHit(Key.F11)) then self.showstats = not self.showstats end if self.showstats then self.context:SetColor(1,1,1,1) self.context:DrawText("FPS: "..Math:Round(Time:UPS()),2,2) end end --Refresh the screen self.context:Sync(false) --Returning true tells the main program to keep looping return true end
  16. No, not running comodo. Will recheck whats going on.
  17. Published Apps are not launching. After some investigation I found by placing the file: 'steam_appid.txt' into the published App folder, the App then ran as expected. This just me ? Windows 7, Le 3.1 (not Beta )
  18. * steam client not running will investagate. This turned out to be firewall issue, Steam Client couldn't poke hole in firewall.
  19. Here are the default colors, works with Windows: PS I'm happy now, and have my colors back. colors.zip
  20. Ok I found the problem. The color file you posted looks like this: backgroundcolor="64","64","64" majorgridlinescolor="102","102","102" minorgridlinescolor="77","77","77" minorgridlinescolor="77","77","77" origincolor="255","255","255" drawobjectcolor="255","255","0" entityguidecolor="0","255","255" selectiontabcolor="255","255","255" minbrushcolor="0","64","64" maxbrushcolor="0","191","191" minmodelcolor="128","64","0" maxmodelcolor="255","191","0" codeforegroundcolor="0","0","0" codebackgroundcolor="255","255","255" stringscolor="128","0","0" keywordscolor="0","0","255" commentscolor="0","128","0" boundingboxcolor="255","255","255" gutterbackgroundcolor="237","237","237" gutterforegroundcolor="128","128","128" codefoldingcolor="128","128","128" The format that works looks like this: backgroundcolor=64,64,64 majorgridlinescolor=255,255,255 minorgridlinescolor=0,0,0 minorgridlinescolor=0,0,0 origincolor=0,0,0 drawobjectcolor=0,0,0 entityguidecolor=0,0,0 selectiontabcolor=0,0,0 minbrushcolor=0,0,0 maxbrushcolor=0,0,0 minmodelcolor=0,0,0 maxmodelcolor=0,0,0 codeforegroundcolor=0,0,0 codebackgroundcolor=0,0,0 stringscolor=0,0,0 keywordscolor=0,0,0 commentscolor=0,0,0 boundingboxcolor=0,0,0 gutterbackgroundcolor=0,0,0 gutterforegroundcolor=0,0,0 codefoldingcolor=0,0,0
  21. I did download the color file, but when I load it nothing happens, what's supposed to happen? When I hit apply should something happen ? If I change colors manually it works as expected. I fully understand the beta deal, i'm 100% ok with it.
  22. I was happy using Leadwerks 3.1, till Josh said beta was fast.. So I turned on the Beta branch, wow that sucked. loaded my project and it dropped everything except primitives! When drawing new primitives it no longer drew the lines outlining the primitive (bottom pic), and when selecting the primitive it no longer drew the Axis! Adding the FPS guy to the terrain kinda cause a big guy and a little guy to appear. At that point I wanted to roll back to original, So I told steam to opt me of beta, and delete local content content. Steam started the 3.1 download, and finished. LE 3.1 started up with no gridlines, and only showing the yellow sun. Tools options colors shows every thing as black! I downloaded the colors.zip from previous bug report, unzipped it onto my desktop. Tools, Options, Colors, Load, and selected color.clr, nothing happened, colors all stayed black inside the colors tab, apply and ok, and still nothing. At least it draws the outline of the primitive now, and I can see the Axis again. So do I manually enter the colors in or what ? Win7, AMD Radeon HD 7950 3GB 384-Bit GDDR5 PCI Express 3.0 x16
  23. So I'd be able to select surfaces and apply material in LUA code too ?
×
×
  • Create New...