Jump to content

martyj

Members
  • Posts

    544
  • Joined

  • Last visited

Everything posted by martyj

  1. It appears the libovrd that leadwerks beta ships with contains a debug symbol for free, malloc, calloc, and realloc. This bug is in latest leadwerks beta This bug is for Windows. Using objdump on libovrd.lib you can see this in the symbols list https://i.imgur.com/89aDo4R.png I can build my application in debug but not release. If you need anything else, let me know.
  2. I have a few models that use the same texture. When loading my map I noticed that it loads the same textures over in over instead of using a copy of the texture already loaded from a previous model load. Could there be a cache to not have to reload textures in the same path? Thanks, Marty
  3. What are the options to terrain quality and what is the default? Light quality if I remembered was a 0, 1, 2 for low, med, high with a default of 1? What is the default of SetMultisampleMode? Or should I not rely on LE defaults and hardcode my own defaults as my game loads with the ability to change them?
  4. So I am working on having the ability to adjust performance options in my game. There are a few undocumented functions and I was wondering what all can we adjust to improve rendering performance or create better detailed renderings? I have found a list of functions. Context::SetAntialias // True/False, but what about AA values such as 4x, 8x ect? World::SetLightQuality World::SetTessellationQuality World::SetTerrainQuality World::SetPhysicsDetail Terrain::SetTextureStageDistance // What does this even do? What are the values that we can pass in, and what is the default? Right now my game runs terrible on my laptop, but it runs decent on my desktop. So having this ability to adjust settings is very important.
  5. I think I may have found a solution. Please ignore
  6. Anything I can do to help to resolve this?
  7. On my map Grid1 I am getting an Access Violation in List End() When I load a map such as Inventory_Firemaking_Test.map or MainMenu.map I get no error. This is on both the latest beta and the latest stable release. http://i.imgur.com/PgiXokN.png As per my usual bug report, I will message Josh with a link to my project.
  8. I buy my models off of http://www.3dmodels-textures.com/. You might want to talk with them. Their work integrates with Leadwerks fairly well.
  9. I'm getting an access violation on any code ran after World::Render I've tested different code bases and different drivers and both give the same error. I've tested on my laptop and desktop. I will message Josh with a link to my source code. Operating System: Windows 10 Graphics card manufacturer: AMD Leadwerks Version: Latest Beta The exception is thrown on line 125 on App.cpp. Any code ran after world->Render(); throws an exception.
  10. A lot of times if you upgrade to the beta version you cannot downgrade as the map version changes. This makes your game only usable on Beta.
  11. The biggest benefit with HTML is the speed at which UI can be developed. Even with a LUA library, GUI development is very slow. It's also IMO easier to create a nicer looking and more responsive UI with HTML.
  12. User interfaces are very difficult in Lua. Even with libraries like FlowGUI. I think Leadwerks should embed something like WebKit into the framework. This would allow easy UI creation in html. It could have some LUA bindings for onclick on elements, changing html in an element. I recommend something like this: http://sourceforge.net/projects/wke/ Having a clean UI can really help make or break a game, and at the moment Leadwerks doesn't provide much in the UI department.
  13. I am not using prefabs. The name is set with the editor. I believe the two may be related though.
  14. Sorry my mistake, I was messing around with that to see if it was the AABB that was the problem. I changed the code back to had I first had it. That doesn't change the entity name problem I am having. Both versions get entities passed to the callback. The problem is their name is empty.
  15. I have several entities that I'm trying to get a reference to a bunch of entities to be able to spawn copies of them. All my entities are at the same location. (-100, -100, -100). My code is as follows function ParseWorldItemsCallback(entity, extra) local name = entity:GetKeyValue("name") System:Print("name:"..name); end function ParseWorldItems() local aabb = AABB(-101, -101, -101, -99, -99, -99) local world = World:GetCurrent(); world:ForEachEntityInAABBDo(aabb, "ParseWorldItemsCallback", nil); end My problem is that the name of the entity is empty string "". Am I using ForEachEntityInAABBDo wrong? Or is there something wrong with how I'm getting the entity name? Thanks, Marty
  16. The best way to do waves is inside a geometry shader, which is something out of our control. What you could do instead is generate the wave water as an animated model perhaps. As far as how LE can handle large blocky terrain, I would say, it would require a lot of developer programming to make it fast and effiecient. LE is a general engine. Rendering voxel type graphical data is something very specific. I am sure it can be done on LE
  17. If you want to know bad graphics manufactureres, don't look towards AMD. Look towards Intel. Better yet, look at Intel on Linux. I don't think Intel even has an OpenGL 4.0 driver on Linux. Just OpenGL 3.1
  18. I would actually make multiple privots around the track. That way you can detect if they went backwards through the starting position to re-cross the line.
  19. For comparing dates with that format in PHP you can use date_create_from_format($fmt, $dateString) which returns a DateTime object then call the getTimestamp method on it. Then from there, it's just simple subtraction.
  20. So here is my solution. Requires some modification depending on your PHP verson and the format of the date. <?php $recordCount=3; $fileType=4; $queryType = 1; $webAPIKey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; function LoadXML($path) { $content = utf8_encode(file_get_contents($path)); if (trim($content=='')) return NULL; $content = str_replace(chr(11),'',$content); return simplexml_load_string($content); } function clean($string) { return preg_replace('/[^A-Za-z0-9\- ().,!]/', '', $string); // Removes special chars. } function truncate($string, $length) { if (strlen($string)>$length) { return substr($string,0,$length-3)."..."; } else { return substr($string,0,$length); } } // TODO: Look at your PHP version to see how pass by refernece is handled. Is it declared on the function or handled on the caller. One is depreciated in the latest php function xmlArrayAppend(&$items, $xml) { if($xml !== false) { for($i = 0; $i < $xml->total; $i++) { $items[] = $xml->publishedfiledetails->message[$i]; } } } // http://php.net/manual/en/function.usort.php $value_compare_func param /*The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.*/ function xmlTimeSort($a, $b) { //compare $a->time_created to $b->time_created; // Are these strings, timestamps, date objects? // If I had more info I could help here } /* filetype = 0 Workshop items Filetype = 1 Workshop collections Filetype = 2 returns artwork Filetype = 3 returns videos Filetype = 4 returns screenshots Filetype = 5 returns info on the Leadwerks app, I think */ $steamcontent = LoadXML('http://api.steampowered.com/IPublishedFileService/QueryFiles/v0001?key='.$webAPIKey.'&format=xml&query_type='.$queryType.'&page=1&numperpage='.$recordCount.'&appid=251810&filetype='.$fileType.'&return_vote_data=1&return_short_description=1'); $fileType=3; $recordCount2=1; $steamcontent2 = LoadXML('http://api.steampowered.com/IPublishedFileService/QueryFiles/v0001?key='.$webAPIKey.'&format=xml&query_type='.$queryType.'&page=1&numperpage='.$recordCount2.'&appid=251810&filetype='.$fileType.'&return_vote_data=1&return_short_description=1'); $fileType=0; $recordCount3=1; $steamcontent3 = LoadXML('http://api.steampowered.com/IPublishedFileService/QueryFiles/v0001?key='.$webAPIKey.'&format=xml&query_type='.$queryType.'&page=1&numperpage='.$recordCount2.'&appid=251810&filetype='.$fileType.'&return_vote_data=1&return_short_description=1'); $items = []; // TODO: Look at your PHP version to see how pass by refernece is handled. Is it declared on the function or handled on the caller. One is depreciated in the latest php xmlArrayAppend(&$items, $steamcontent); xmlArrayAppend(&$items, $steamcontent2); xmlArrayAppend(&$items, $steamcontent3); usort($items, xmlTimeSort); for($i = 0; $i < $recordCount; $i++) { $item = $items[$i]; echo "<td style='width: 20%; padding: 2px; border-spacing: 0px;'><a title='".$item->title."' href='http://www.leadwerks.com/werkspace/page/viewitem?fileid=".$item->publishedfileid."'><img class='resized_img' style='max-width:100%;' src='".$item->preview_url."/256x144.resizedimage' /></a></td>"); } Basically you store all 9 items in an array, use usort to sort the array by the time_created, then echo the last 3 off. I'd recommend using something like SimplePie as it supports XML caching and you don't want to do 3 page requests every time someone refreshes your page. http://simplepie.org/
  21. Does anyone have an AMD APU? I'd prefer to avoid Intel at all cost due to their Linux drivers. I'd be curious to see how LE would run on an A6, A8, and A10.
  22. I was wondering who here uses Leadwerks on a laptop? If so, what graphics do you use? Integrated or dedicated? What CPU do you use? If you do use a laptop, have you used Leadwerks on a desktop? If so, what if any where the differences that you noticed? Thanks, Marty
×
×
  • Create New...