Jump to content

Phodex Games

Members
  • Posts

    275
  • Joined

  • Last visited

3 Followers

Profile Information

  • Location
    Germany

Recent Profile Visitors

13,692 profile views

Phodex Games's Achievements

Newbie

Newbie (1/14)

136

Reputation

2

Community Answers

  1. Sure I will add it to the "best answer".
  2. For all those facing the same problem, its actually pretty easy. Log into the steam backend and set up an achievement like so: Then in leadwerks, if you use lua, just call Steamworks:Initialize() in the main.lua at start. To set an achievement active do this: Steamworks:SetAchievement("STORY_COMPLETE") --And thats all :) Two things to keep in mind and which confused me are: 1. Steam may take a while to display your achievements after you published them, so wait until you see them displaying in the steam store, or when you click on the game in your library. 2. The achievement unlocked popup, will NOT show up while ingame, you only see after you closed the game and an achievement has been unlocked. There are also progressive achievements but the work pretty similar. Little tip: As those functions are not documented, activate auto complete for the Leadwerks IDE and type "Steamworks:" it will display all available functions. Good Luck
  3. Hi, I want to add steam achievements to my game, but I only found very old threads about the topic. I can't really get it running. I am trying to do this with lua by the way. So I set up a few achievements and published them in the steamworks backend, then after I called Steamworks:Initialize() in my game I just call Steamworks:SetAchievement(API Name as string) to unlock an achievement right? This does not work for me, and the function is also not documented. Am I doing something wrong? Thanks! EDIT: Ok solved, I think it does not work with my developer account and the achievement unlock message seems to only be displayed after I closed the game again.
  4. I actually build a something like this for my own UI system, using the theora library and some old code I found in the forums. I wanted to put it to the marketplace actually, but it does not play audio yet, so you would need to play the audio externally with Sound:Play(). Also as far as I remember the quality was not that good, but maybe it was just because of the video conversion to ogg. If there is a demand I may consider working on this again and bring it to the marketplace as part of the phodex framework
  5. Ok so I found a workaround for the issue. It actually works pretty good so far, still its not ideal, and I just tested it for a single non-prefab object with no parent, but it is at least something. A Physics:Refresh() function maybe would be a good idea? But thats just my unprofessional opinion. function Script:Start() self.startPos = self.entity:GetPosition(true) end function Script:UpdateWorld() if self.moved then --Move the object one frame after I gave it mass then remove the mass and set it back to scene collision self.entity:SetPosition(self.startPos.x + 15, self.startPos.y, self.startPos.z, true) self:SetMoveMode(false) end if keyHit.K then self:SetMoveMode(true) self.moved = true end end function Script:SetMoveMode(state) if state then self.entity:SetCollisionType(Collision.Prop) self.entity:SetMass(10) else self.entity:SetCollisionType(Collision.Scene) self.entity:SetMass(0) end end Future will show if this will also work for my more complexe scene... EDIT: @mdgunn Just saw your reply. Yeah my sentence was a little weird. I meant that with this method, all of my objects will have dynamic physics, and objects (like wodden planks) I place on the roof of a room will fall to the ground when mass is enabled. However as you can see above I found a solution, at least for the moment.
  6. Ah yeah the new cube I created in your scene had 0 mass actually. It does actually work with mass > 0. The problem is if I set mass to my scene object then it sometimes just falls through the ground (which by the way is why I did not set a mass), or it behaves like a dynamic physics object, which I not want, I maybe have some wodden planks at the ceiling and don't want them to fall on the ground ^^. Well I have different room layouts & different prebuild furnishing sets. A few rooms are preloaded and then everytime you exit a room an new one gets loaded and placed at the right position. This works in the first place, but I experienced that after a certain number of rooms, the collison of some objects are broken (so far just the furnishing objects, not the room itself were affected). Could you explain this a little more? As explained about arent my objects flying around with mass enabled? How would you created the scene floor and not make him move? By the way, thanks for you help its actually one of the last things I need to get done before I can release it...
  7. I downloaded your files. First it worked, but when I created a new cube and changed it to +15 it did again not work. I now also experienced, when changing back to +5 with another cube that just the front of the box had physics and I can walk inside the cube from the sides. Play around with different pos values (like +5 +15 +25) and you will see the physics break again...
  8. Well ok I guess you are right. I just meant I need like 5 minutes to setup a scene like this. I know you are busy and I appreciate you take the time... I attached a test project. Just open the start.map. If you press "K" the box moves and you can walk through the box. Now the question is how to move it without breaking the physics. TestLevel.zip
  9. Well to see the problem I am explain I would need to upload my whole project, which is relatively large. If I have time I can try reproducing the error in a smaller setup and upload it here. But as the tests with the box results in the same behavior (disabled physics when setting position after an entity is spawned) I though it is actually the same error as with my more complex scene... Sorry I don't understand why the setup I and mdgunn described is not enough to examine the problem... I mean the question still remains, how to change an objects position with static scene phyiscs after its placed in scene. I see no solution yet. I understand that it has to do with the physics engine not updating the new position of the object, but what to do against it?
×
×
  • Create New...