Jump to content

gamecreator

Members
  • Posts

    4,937
  • Joined

  • Last visited

Posts posted by gamecreator

  1. On 9/15/2019 at 6:40 AM, Marcousik said:

    Just a question: How do you get the minimap to be round ???

    and what is exactly mm_mask.tex (did not find it)

    He mentions a "masked circle" in his second post.  I suspect that's the answer, that mask.tex is the circle mask for the mini map.

    If you look at the shader code, you see this:

    	if (mask.r > 0.0) {
    		fragData0 = drawcolor * texture(texture1, (vTexCoords0 * zoom) + UV - zoom * 0.5);
    	}
    	else {
    		discard;
    	}

    which looks like it discards (doesn't draw) pixels that have a red value of 0, if I understand it right.

  2. 2 hours ago, jen said:

    yet another dumb worldly issue for people to talk about so media can cash on the drama. 

    Awww, let people have their silly fun.  Bigfoot, aliens, loch ness, moon landing, Bermuda Triangle, Illuminati, Elvis/Tupac living, etc., it's all meaningless discussions but there are worse ways to spend your time.

    • Like 1
  3. It depends on your video card, how much you have on your map and your settings.  Leadwerks has a separate vegetation tool which uses billboards for vegetation in the distance.  You also have a few settings you can specify, like how far you can see things, to optimize.  I'd suggest creating a map and littering it with vegetation and playing with the settings to test it yourself.

  4. The cylinder shape is used when you use CharacterPhysics as the physics mode so you can use the automatic pathing for characters.  You can check out the SetInput documentation for sample code (as macklebee also linked above).

    Unfortunately you can't change cylinder shape or size for character navigation but it should work fine for smaller or larger characters.  Remember that the player won't be able to see the collision details and they won't notice small size differences.  On the other hand, if your game has giants or mice that need to get in small spaces or something, Leadwerks pathing won't be for you.

  5. You mean if they start a new program while they're running your game?  You probably don't want to assume that that's a hack.  They could be opening a music program, notepad to take notes, a browser, anything.  Plus they could run the hack even before they start your program.

    Not sure what a nil ping has to do with hacks.  A hack wouldn't prevent the program from sending and receiving packets (unless maybe you're talking about lag switching).

  6. 10 hours ago, Vince said:

    As for the game running on multiplayer servers are clients able to edit server stats of players and or player location?

    No.  Clients typically can't hack servers directly.  If you have your own server (your computer or one you rent) then setting up a proper authoritative server (https://www.gabrielgambetta.com/client-server-game-architecture.html) will allow you to handle the vast majority of hacks.  This includes positions, items, stats, XP, etc.

    Auto-aim bots are a bit tricky because they're often smarter than just instantly snapping to an enemy.  I've also seen a hack that highlighted enemies behind walls, which doesn't need any interaction with the server so it's mostly a fool-proof cheat (you could check the computer for any hack programs running but that's probably beyond how far you want to go).

  7. This is mostly just a curiosity question.  Time::Millisecs() and Time::GetCurrent() both return milliseconds as long, which has a maximum value of 2,147,483,647 (LONG_MAX).  This equates to almost 25 days, if my math is correct.  What happens when these functions max out?  Do they next go to 0, do they wrap to -2,147,483,648 (LONG_MIN) or something else?  I'm sure this won't affect most people here but it could be relevant for a server that's up 24/7 (I have no plans for this myself).

  8. 4 hours ago, Josh said:

    In the future I am going to use as few of third-party libraries as possible on Linux, but it's not possible to fix existing libs that keep breaking.

    I love the engine being ready to use with any number of helpful libraries.  The ones I use most are Steam and of course the zip library (through Leadwerks) which lets you access data/pak/zip files.  That said, I think Steam would be easy to incorporate separately, if necessary.  I am planning on using GameAnalytics more heavily but I'm not confident that I could incorporate this easily myself (it also relies on libcurl, I believe).  And again, back on the other side of the coin, if there was a step-by-step incorporation tutorial for Leadwerks, I think that would do.

  9. Poor Mr. Tiddles.  That cat's been missing so long, the missing poster got a concert poster put over it.  ?

    Good environment.  Looks like the apartment hallways could use some plants or benches or something to mix things up.  You might already have this planned.

  10. I was working with vegetation just now and I'm not sure if this is related to the above but I accidentally recreated it with the following:

    1.  Create a terrain and add a grass texture just as diffuse (not sure if second part is required)
    2.  Add default tree as cluster
    3.  Set view range to about 32 - this seems more prominent with a lower amount

  11. It's a bit weird to stand in front of trees that are permanently partially dithered in, until you move again.  It would be nice if Leadwerks (or, likely, Turbo) could take this one step further and fade vegetation in or out completely, even if you're standing still, depending on the distance.  In other words, if you walk up to a tree and stop, and it would have been half dithered with the current method, it would finish fading in completely.

    tree_fade.jpg.fa8c825e547de40c7f983ac11f65335f.jpg

     

    • Like 4
  12. On 1/27/2018 at 9:41 AM, Josh said:

    If you have items that are created in code before the map is loaded, you can call AddRef() on them before World::Clear() and then call Release() on them after that. This will temporarily increase the reference count and then set it back to 1.

    How is this supposed to look?  I have the following code and it's not working.

    #include "Leadwerks.h"
    
    using namespace Leadwerks;
    
    int main(int argc, const char *argv[])
    {
    	Leadwerks::Window* window = Leadwerks::Window::Create();
    	Context* context = Context::Create(window);
    	World* world = World::Create();
    
    	Model* model = Model::Box();
    	model->SetColor(0.0, 0.0, 1.0);
    
    	Camera* camera = Camera::Create();
    	camera->Move(0, 0, -3);
    
    	Map::Load("Maps/map1.map");
    
    	while (true)
    	{
    		if(window->Closed() || window->KeyDown(Key::Escape)) break;
    
    		//  Clear old map, load new one
    		if(window->KeyHit(Key::L))
    		{
    			System::GCSuspend();
    
    			model->AddRef();
    			camera->AddRef();
    
    			world->Clear();
    
    			model->Release();
    			camera->Release();
    
    			Map::Load("Maps/map2.map");
    
    //			camera = Camera::Create();
    //			camera->Move(0, 0, -3);
    
    			System::GCResume();
    		}
    
    		Time::Update();
    		world->Update();
    		world->Render();
    		context->Sync();
    	}
    }

    I've printed out the GetRefCount() at all points.  It's 1 before AddRef(), 2 after then 0 right after Clear(), even before Release().  In case I misunderstood, I also tried to move the Releases after GCResume but that didn't work either.

  13. There are at least three possibilities:

    1.  The model's feet were not placed in the world's origin before being exported
    2.  The model's physics shape doesn't match the model
    3.  Your ground collision box/mesh may be higher than the ground

    You can test for these by trying to put the model into another scene.  I'd create a simple terrain and try it there.

    You can also go to View, Show Physics in the editor to see your physics shapes.

  14. Go in editor and select perspective view (with a scene created or loaded).  Hit Ctrl-S to save.  Cancel (probably also works with Save).  You'll be flying backwards until you hit S key again.  Seems like Editor is taking Ctrl-S as you having hit S to go backwards in scene but then the dialog comes up and it never gets the release message so when the dialog is dismissed, it still thinks you're holding the S key.

    • Like 1
×
×
  • Create New...