Jump to content

MexSource

Members
  • Posts

    132
  • Joined

  • Last visited

Posts posted by MexSource

  1. Hey,

     

    I noticed (in 3.0 and 3.1) that Time::GetSpeed() doesn't return really useful values.

    When i opened some programs in the back (my computer is slower) I can run much faster and when my computer is very fast i run very slow.

     

    Here's the code i used:

    playerMovement.z = (window->KeyDown(Key::W) - window->KeyDown(Key::S)) * Time::GetSpeed() * moveSpeed;
    playerMovement.x = (window->KeyDown(Key::A) - window->KeyDown(Key:)) * Time::GetSpeed() * strafeSpeed;
    

     

    PS: if you activate vsync (context->Sync(true)) you can also run faster and when you disable it (more fps) you will run slower.

     

    Does somebody else has these problem's and do josh know about this? Or should i create a new bug report?

  2. Hey,

     

    I already created some triggers with leadwerks 3.0 but now in 3.1 i have one problem.

    It says: invalid type conversion

    at this line: currEnt->AddHook(Entity::CollisionHook, (void*)onCollision);

     

    heres my App.h:

     

    #pragma once
    #include "Leadwerks.h"
    using namespace Leadwerks;
    class App
    {
    public:
    Leadwerks::Window* window;
    Context* context;
    World* world;
    Camera* camera;
    App();
    virtual ~App();
    
    void onCollision(Entity* entity0, Entity* entity1, float* position, float* normal, float speed);
       virtual bool Start();
       virtual bool Loop();
    };
    

     

    and the important part of my App.cpp

     

    [...]
    //The onCollision function
    void onCollision(Entity* entity0, Entity* entity1, float* position, float* normal, float speed){
    }
    [...]
    //and in App::Start
    [...]
    list<Entity*>::iterator iter;
    for (iter = world->entities.begin(); iter != world->entities.end(); ++iter){
     Entity* currEnt = (*iter);
     cout << "Entity loaded: " + currEnt->GetKeyValue("name") << endl;
     if (currEnt->GetKeyValue("name") == "runner_spawn"){
      runner_spawn = currEnt->GetPosition();
     }
     if (currEnt->GetKeyValue("name") == "death_spawn"){
      death_spawn = currEnt->GetPosition();
     }
     if (currEnt->GetKeyValue("name") == "runner_mesh"){
      runner_mesh = currEnt;
     }
     if (currEnt->GetKeyValue("name") == "death_mesh"){
      death_mesh = currEnt;
     }
     if (currEnt->GetKeyValue("name") == "void"){
      currEnt->AddHook(Entity::CollisionHook, (void*)onCollision);
     }
    }
    [...]
    

     

    if you need more code i will give it out, but i think that should be enough

     

    Thanks,

    Mex :)

  3. 2) nope, everything is right. In c++ there is no pre-given fps controller I think. You would have to do it yourself.

    PS: to create one you could have a look at the lua fps controller script and 'translate' it

  4. I had no error in the log, and i wanted a fresh log. So i deleted the log and tried to start with admin rights, normal, and over steam... It doesn't create a new log?

     

    btw: when i start MyGame.exe in the console it says "Error: Failed to read file "C:/Program Files (x86)/Steam/SteamApps/common/Leadwerks Indie Edition/MyGame/Maps/start.map".". but i think that downsn't matter, it only means there is no start.map

     

     

     

    //i found this thread:

    http://www.leadwerks.com/werkspace/topic/8318-leadwerks-doesnt-start-anymore/

    it seems the same problem as i have, and i don't have visual studio 2013 installed at the moment. Maybe that's the problem?

     

    //i think i will now save all my data and reinstall windows

  5. Hello,

    first to say i had the same problem with the indie edition too.

    i get nothing when starting over steam and i get a error (0xc000007b) when starting manually

    in the internet i read it has something to do with wrong dll's (32-bit and 64-bit) but i don't know where to start, and which dll's this could be.

     

    Thanks for any help ;)

  6. I had windows update deactivated completely for a long time. I received no updates then it seems Ubuntu maybe corrupted some part of the windows update system cause I always an error when trying to install the updates and then it reverses all changes....

  7. Windows Desktop... :/

     

    PS: when I run the sp1 installation I get the error 0x80070422 it seems that this means the windows update service is disabled but it's not. It's activated and started...

     

     

    //anyone tested it with vc++2010? :/ (I don't expect it to work....)

×
×
  • Create New...