Search found 107 matches

by DarknessEyes
Tue Dec 29, 2015 11:04 pm
Forum: Modding
Topic: Can I make an object temporarily unusable?
Replies: 1
Views: 809

Re: Can I make an object temporarily unusable?

You can spawn a new object and attach it to the slot used.
There is no other way :( I'm having the same problem.
by DarknessEyes
Mon Oct 26, 2015 11:04 pm
Forum: Modding
Topic: HELP coffee machine
Replies: 62
Views: 11754

Re: HELP coffee machine

I decoded markers...

The X and Y offset doesnt change the X/Y of the slot related to the object position in game.
The X and Y offset are related to the sprite.bmp file

Still trying to figure out the correct math to get the values
by DarknessEyes
Sun Oct 25, 2015 11:19 pm
Forum: Modding
Topic: HELP coffee machine
Replies: 62
Views: 11754

Re: HELP coffee machine

Now gonna try to make an hire able Riot Police thats detects prisoners rioting :)
by DarknessEyes
Sun Oct 25, 2015 6:41 pm
Forum: Modding
Topic: HELP coffee machine
Replies: 62
Views: 11754

Re: HELP coffee machine

The mod is now uploaded in steam workshop!

http://steamcommunity.com/sharedfiles/f ... =541882498
by DarknessEyes
Sun Oct 25, 2015 5:38 pm
Forum: Modding
Topic: HELP coffee machine
Replies: 62
Views: 11754

Re: HELP coffee machine

Almost everything done for alpha release. Have 3 small issues: # Issue 1: Needs.txt BEGIN Provider Action DEBuyingSnacks ProviderType Object Object DESnack PrimaryNeed Food PrimaryRate 0.0 ActionType Use Slot 0 Flags UsesEntireObject Flags RequiresCash Priority 1.05 END BEGIN Provider Action DEBuyin...
by DarknessEyes
Sun Oct 25, 2015 2:08 am
Forum: Modding
Topic: HELP coffee machine
Replies: 62
Views: 11754

Re: HELP coffee machine

I quit all the designs... made a simple one thats working fine. 1 slot where stacks of coffee beans are loaded.. Spawn a coffee mug 1 tile away from the machine (based on rotation) and decrease stack by one... Prisoners go use the coffee mug. The coffee mug fills their need of sleep and changes the ...
by DarknessEyes
Sun Oct 25, 2015 12:13 am
Forum: Modding
Topic: HELP coffee machine
Replies: 62
Views: 11754

Re: HELP coffee machine

I've no idea why it does that. My sprite isn't rotatable so I never ran in to that problem. I'd suggest looking at Chad's Drinks Mod as I'm pretty sure he had things with slots that could be rotated and hopefully there will be something in his mod that shows how to solve the problem. BEGIN Marker x...
by DarknessEyes
Sat Oct 24, 2015 11:30 pm
Forum: Modding
Topic: HELP coffee machine
Replies: 62
Views: 11754

Re: HELP coffee machine

The "Index" within a marker is the slot number (first slot is 0, so marker with Index 0 relates to that slot). The x and y of a marker is the offset from the origin of the sprite ( in my case the sprite origin is roughly the middle of the main cabinet ). In other words, this sets the posi...
by DarknessEyes
Sat Oct 24, 2015 8:30 pm
Forum: Modding
Topic: HELP coffee machine
Replies: 62
Views: 11754

Re: HELP coffee machine

The markers get defined inside the "BEGIN Sprite ... " block, eg. on the line after RotateType. Check out my Circuit Isolator mod where the main cabinet defines 3 markers. As for the rotation issue, try RotateType 1 (which rotates around horizontal axis; RotateType 3 rotates around the ve...
by DarknessEyes
Sat Oct 24, 2015 2:28 pm
Forum: Modding
Topic: HELP coffee machine
Replies: 62
Views: 11754

Re: HELP coffee machine

I'm still documenting markers, but seeing as you are using a sprite from the base game you'll need to clone objects.spritebank (this will make your mod highly incompatible with other mods that do the same), Here is the documentation I have so far on markers in that file: https://github.com/aubergin...
by DarknessEyes
Sat Oct 24, 2015 12:06 am
Forum: Modding
Topic: HELP coffee machine
Replies: 62
Views: 11754

Re: HELP coffee machine

Yes, you can define multiple slots on a 1x1 or any size object. I'm not sure if there are limitations in respect to proximity of slots. If you're using base-game sprite (defined in objects.spritebank and the image either in objects.png or people.png) then you're in for a world of pain when it comes...
by DarknessEyes
Fri Oct 23, 2015 11:51 pm
Forum: Modding
Topic: HELP coffee machine
Replies: 62
Views: 11754

Re: HELP coffee machine

Ah, in that case you'll be getting the default markers - if there are any... http://forums.introversion.co.uk/viewtopic.php?f=88&t=55643 I think i found the problem O.o Item is 1w1h and have 2 slots... slots0 is over slot1... so slot1 is invalid?!? Is is possible to define 2 slots in an item 1w...
by DarknessEyes
Fri Oct 23, 2015 10:49 pm
Forum: Modding
Topic: HELP coffee machine
Replies: 62
Views: 11754

Re: HELP coffee machine

I assume you used NumSlots setting in materials.txt to limit the number of slots the game can use by default? (your script can still use all 8 slots, regardless of NumSlots setting) EDIT: Yes, if you want to be sure that the markers are where you think they are, you must define them, otherwise you'...
by DarknessEyes
Fri Oct 23, 2015 9:30 pm
Forum: Modding
Topic: HELP coffee machine
Replies: 62
Views: 11754

Re: HELP coffee machine

It doesn't matter where it's spawned. When you add something to a slot, it's x,y is moved to the position of the slot (which is defined by the marker). Unless the marker is at 0,0 (offset from x,y) then the thing in the slot will not be at the same position as whatever it is that the slot is part o...
by DarknessEyes
Fri Oct 23, 2015 9:26 pm
Forum: Modding
Topic: HELP coffee machine
Replies: 62
Views: 11754

Re: HELP coffee machine

It doesn't matter where it's spawned. When you add something to a slot, it's x,y is moved to the position of the slot (which is defined by the marker). Unless the marker is at 0,0 (offset from x,y) then the thing in the slot will not be at the same position as whatever it is that the slot is part o...

Go to advanced search