Search found 2938 matches

by Lobby
Tue May 07, 2019 16:16
Forum: Tutorials and Documentation
Topic: Upgrades
Replies: 48
Views: 6033

Re: Re: Upgrades

Upgrades aren't rotation aware on their own. You have to use a rotation aware animation in an upgrade in order to support rotation awareness in it. This may look like that: [ { "id":"PiazzaMoroSpoglia_upgrade00", "type":"animation", "frames":[{ "bmp": "PiazzaMoroL5.png"}, {"bmp": "PiazzaMoroL6.png"}...
by Lobby
Mon May 06, 2019 22:16
Forum: Forum
Topic: Rules
Replies: 12
Views: 9079

Re: Rules

A hacked version is basically a modified copy of the game. Usually hackers remove or replace the monetization of the game, that's why it is not allowed.
by Lobby
Sat May 04, 2019 20:00
Forum: Tutorials and Documentation
Topic: Compositions
Replies: 16
Views: 2481

Re: Compositions

The composition building has to be rotation aware since the map can be rotated. Therefor, remove the line

Code: Select all

"rotation aware":false
from your composition building $Composition_Test_MSG and it should work.
by Lobby
Fri May 03, 2019 17:49
Forum: Service
Topic: Fire and police composition
Replies: 9
Views: 2165

Re: Fire and police composition

Yes, in order to specify a line we have to provide a start point (x0, y0) and an end point (x1, y1) :img
line.png
by Lobby
Thu May 02, 2019 16:01
Forum: Tutorials and Documentation
Topic: Compositions
Replies: 16
Views: 2481

Re: Compositions

This code works for me, did he ensure that he has the latest version (that is 606)?
by Lobby
Wed May 01, 2019 16:20
Forum: Plug-In Discussion
Topic: Lua: How to get the draft id of the Ground?
Replies: 3
Views: 913

Re: Lua: How to get the draft id of the Ground?

:bc
Always use UTF8 if possible.
by Lobby
Mon Apr 29, 2019 18:41
Forum: Tutorials and Documentation
Topic: Compositions
Replies: 16
Views: 2481

Re: Compositions

Of course! Added the json file to it :json
by Lobby
Sun Apr 28, 2019 19:04
Forum: Tutorials and Documentation
Topic: Compositions
Replies: 16
Views: 2481

Compositions

Overview Compositions are a way to combine buildings, roads, road decorations and trees as a building. An important property of compositions is the support of a non square ground size. Therefore it could be used to make up non squared buildings for example :teach Compositions are used for example f...
by Lobby
Sun Apr 07, 2019 11:46
Forum: Problems
Topic: [Resolved] Recover in-app purchases...
Replies: 9
Views: 1757

Re: Recover in-app purchases...

When you say your are logged into Google, do you actually mean Google Games within the game (the thing that allows your to display leaderboards and achievements)? Because it's insufficient if just your device is connected since the game has no access to that. Once you are connected to Google Games (...
by Lobby
Thu Apr 04, 2019 18:29
Forum: Smalltalk
Topic: TheoTown Forum Chatbox
Replies: 9584
Views: 334823

Re: TheoTown Forum Chatbox

Eventually there will be.

:66:
by Lobby
Wed Apr 03, 2019 16:22
Forum: Forum
Topic: Have any PC version of TheoTown?
Replies: 14
Views: 6197

Re: Have any PC version of TheoTown?

:66:
by Lobby
Wed Apr 03, 2019 16:18
Forum: Plug-In Discussion
Topic: (Fun Suggestion) Cloning
Replies: 1
Views: 346

Re: (Fun Suggestion) Cloning

This is another special case that shows how limited the fun syntax actually is. It's not a programming language and you'll notice that whenever you try to do something that wasn't thought of when designing it :) In Lua you would do something like: function script:daily(x, y) ... -- The code that dec...
by Lobby
Wed Apr 03, 2019 16:07
Forum: Fun attribute
Topic: Variables
Replies: 11
Views: 3986

Re: Variables

The problem with fun is that it has quite simple functionality and adding special cases for each potential use case doesn't look like a real solution. That's why I added support for Lua :lua: The function to access the storage of a building is Tile.getBuildingStorage If you need help with that pleas...
by Lobby
Wed Apr 03, 2019 11:58
Forum: Plug-In Discussion
Topic: Help with copyright
Replies: 12
Views: 3185

Re: Help with copyright

Yes, feel free to get inspired by the architecture of real world buildings and buildings that might exist in the real world.

The key is that you don't copy any pixel data :)
by Lobby
Mon Apr 01, 2019 17:53
Forum: News
Topic: Announcement of TheoTown 66
Replies: 93
Views: 10622

Re: Announcement of TheoTown 66

I would say... it's over 9000!!!
by Lobby
Sun Mar 31, 2019 20:30
Forum: Problems
Topic: [Answered] Animation problem
Replies: 1
Views: 1356

Re: Animation problem

I just pasted your code into https://jsonlint.com/ and it shows the error message: Error: Parse error on line 22: ...id": "human" }] [{ "id": "fire" ---------------------^ Expecting 'EOF', '}', ',', ']', got '[' By doing so I noticed that you don't follow the necessary json file structure. Your code...
by Lobby
Sun Mar 31, 2019 15:06
Forum: Fun attribute
Topic: Sound with Fun
Replies: 11
Views: 3554

Re: Sound with Fun

I think I have found a solution to the crackling sound issue. But more importantly @ KINGTUT10101 I recently found out that it would be better to avoid ogg or wav files in your plugins completely since they may lead to playback issues dependent on how the manufacturer implemented it :teach (Yes, as ...
by Lobby
Sun Mar 31, 2019 14:56
Forum: Tutorials and Documentation
Topic: Road decoration
Replies: 29
Views: 5681

Re: Road decoration

The world texture is composed from smaller buildings. I use "offset x" and "offset y" to specify from where to pick the frames from. Since you usually bundle your own graphics with your plugin there's usually no need for you to use them.
by Lobby
Wed Mar 20, 2019 0:19
Forum: Lua Scripting
Topic: Lua API documentation [780]
Replies: 7
Views: 1714

Re: Lua API documentation [550]

In Lua there's a global namespace. So if you put something into a global variable you can read it from anywhere: globalvar = 42 function script:update() Debug.info('It has value ' .. globalvar) end If you use a public Array (TheoTown's replacement for Lists) you can enqueue and dequeue things from i...
by Lobby
Tue Mar 19, 2019 20:27
Forum: Problems
Topic: [Answered] Hack detected
Replies: 8
Views: 3006

Re: Hack detected

I mean a screenshot of your game before this screen happens.

Go to advanced search