Search found 7 matches

by grandsong
Sat Dec 31, 2016 3:32 pm
Forum: Modding
Topic: [BUG] Object.Pos or .Or is changed but image doesn't
Replies: 2
Views: 1366

Re: [BUG] Object.Pos or .Or is changed but image doesn't

Sorry for my reply so late. I had given up hope for this forum. Yes, it was your basket ball mod from which I learnt a lot, including orientations. I always set both x and y. And they work well for most objects in most positions (tiles). But there are weird bugs as I described. Recently, I managed t...
by grandsong
Wed Nov 02, 2016 12:32 pm
Forum: Modding
Topic: [API Request] WorkQueue in Object
Replies: 0
Views: 976

[API Request] WorkQueue in Object

Priority: Low WorkQueue is very useful. But it is accessible only by world.lua. Since there is no direct way for a script to communicate with another, I have to take a workaround: 1. Spawn an object 2. Give/set a property ".to_be_build" = true of that object. 3. In Update() at world.lua, a...
by grandsong
Wed Nov 02, 2016 12:23 pm
Forum: Modding
Topic: [Bug] Game.ANYFUNCTION will crash the game
Replies: 0
Views: 920

[Bug] Game.ANYFUNCTION will crash the game

Priority: Normal In world.lua, I can see Game with many function/methods thanks to the explorer mode of Script Debugger Window. I am not going to make scenarios/stories. But methods about contraband, equipment and camera movement are very interesting to me. I was very excited and tried following exa...
by grandsong
Wed Nov 02, 2016 12:07 pm
Forum: Modding
Topic: [Bug] Radio spawned has no need provider effect
Replies: 0
Views: 887

[Bug] Radio spawned has no need provider effect

[Bug] Radio spawned has no need provider effect Priority: Normal I made a mod to clone rooms. It is very easy to use and quite powerful. It works well except that new radios won't decrease prisoners' Receation Needs as expected. I tested and found that any object spawned by lua will not have its nee...
by grandsong
Wed Nov 02, 2016 11:44 am
Forum: Modding
Topic: [Trick and API Request] Get objects in world.lua
Replies: 0
Views: 969

[Trick and API Request] Get objects in world.lua

Priority: Low world.lua is a good thing. I am using its WorkQueue to construct and build. Sadly, it lacks a much-needed API for us to get objects by their type no matter where they are. A workaround is as follows: 1. Spawn an anchor object to do nothing 2. Use .GetNearbyObjects of the anchor and pas...
by grandsong
Wed Nov 02, 2016 11:22 am
Forum: Modding
Topic: [API] Prisoner .Needs and .StatusEffects are "unused"
Replies: 0
Views: 901

[API] Prisoner .Needs and .StatusEffects are "unused"

To get/set prisoners' needs is a big demand for me as a modder. It is a surprise that all properties of .Needs are nothing but damp squibs. As to .StatusEffects, I can set them, but cannot get. So, I am unable to increase or decrease. Any hope for them being fixed? --- BTW, how can I be a member of ...
by grandsong
Tue Nov 01, 2016 7:24 am
Forum: Modding
Topic: [BUG] Object.Pos or .Or is changed but image doesn't
Replies: 2
Views: 1366

[BUG] Object.Pos or .Or is changed but image doesn't

Priority: Middle I am working on moving and rotating objects by lua script. `Object.Pos` and `.Or` works well when the object is an entity like Guard, Prisoner. But when it is a fixture like Toilet, Bed, Cooker, sometimes a bug occurs. At certain positions, after I change `Object.Pos` and `.Or`, the...

Go to advanced search