Search found 44 matches: array

Searched query: +array

by CommanderABab
Thu Jul 11, 2019 18:17
Forum: Tutorials and Documentation
Topic: Cars
Replies: 66
Views: 10527

Re: Cars

... } ] } ] I redacted multiple uses of the same .png in the frames statements for the car, but that wasn't causing your problem. The json being an array [] of objects {}, didn't start with the initial [, which was later in the file. I moved it to the beginning.
by Wekabu city
Sun Jun 09, 2019 20:55
Forum: Allgemeine Diskussion
Topic: Bräuchte Hilfe mit der.json
Replies: 11
Views: 530

Re: Bräuchte Hilfe mit der.json

1) "frames":[{bild1}{bild2}usw.], Da '[' bzw. ']' eine 'Array' symbolisiert (ansamlung/auflistung von Objekten) und '{' bzw. '}' für 'Object' steht. Ein Gebäude ist z.b. ein 'Object', während diese in einer Array von mehreren Gebäuden seien kann. Dennoch ...
by CommanderABab
Thu Jun 06, 2019 2:07
Forum: Tutorials and Documentation
Topic: Determining vehicle direction on roads
Replies: 9
Views: 998

Re: Determining vehicle direction on roads

How to change the standard movement on roads: Remember, arrays start with 0. :) http://www.theotown.com/forum/download/file.php?id=18468 Subtile Order of Each Road Tile: ..........❌ .....❌ 2 ❌ .❌ 0 ❌ 3 ❌ .....❌ 1 ❌ ..........❌ Moving direction is the ...
by Lobby
Sun Apr 28, 2019 19:04
Forum: Tutorials and Documentation
Topic: Compositions
Replies: 14
Views: 1114

Compositions

... 4, "height": 2, "composition": [] -- We will put something in here }] Note that we will put the components of the composition into the composition array. Let's begin with the park. Since it's a building (we'll use the park with id $park01 for it) all we have to provide is the id, the position x, ...
by Lobby
Wed Mar 20, 2019 0:19
Forum: Lua Scripting
Topic: Lua API documentation [741]
Replies: 6
Views: 1038

Re: Lua API documentation [550]

... 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 it. However, the most easy thing would be to just call functions on ...
by CommanderABab
Sun Dec 23, 2018 13:02
Forum: Problems
Topic: [574] Plugin crash (zrails.json:5747)
Replies: 2
Views: 272

Re: [574] Plugin crash (zrails.json:5747)

lvmgaming13 wrote:
Sun Dec 23, 2018 11:56
Add this code to the array "edge frames"

Code: Select all

"bmp":decal.png
2 times.
Should be:

Code: Select all

"bmp":"decal.png"
2 times.
by lvmgaming13
Sun Dec 23, 2018 11:56
Forum: Problems
Topic: [574] Plugin crash (zrails.json:5747)
Replies: 2
Views: 272

Re: [574] Plugin crash (zrails.json:5747)

Add this code to the array "edge frames"

Code: Select all

"bmp":decal.png
2 times.
by Imran M
Sat Dec 15, 2018 11:56
Forum: Tutorials and Documentation
Topic: Translating from raw json to simple json
Replies: 1
Views: 497

Translating from raw json to simple json

... can learn to convert regular json to Json Genie. BTW, people who use apps like droidedit can still look for some tips Json Genie users: Step 1:An array looks like this: [ ] . You have to use it at the start and end of your program, if you're using droidedit. But for you, you just have to make ...
by KACPerez
Thu Dec 13, 2018 10:13
Forum: Map Showcase
Topic: Discovery Scenario Map
Replies: 9
Views: 1738

Re: Discovery Scenario Map

KINGTUT10101 wrote:
Thu Dec 13, 2018 1:01
What's wrong with it?
It says "cannot convert json object to json array"
when I open Theo town.
by Imran M
Sun Dec 09, 2018 18:55
Forum: Tutorials and Documentation
Topic: Car chains
Replies: 9
Views: 1661

Re: Car chains

For people who use json Genie: "tail" is an array, and the ids are values. They don't have a title just a value
by FranchuFranchu
Fri Oct 19, 2018 1:09
Forum: Lua Scripting
Topic: Lua API documentation [741]
Replies: 6
Views: 1038

Re: Lua API documentation [550]

... Creates a new list object that contains the provided parameters.You may use the alias List(...) instead. Returns: list function List:fromArray(array arr) Creates a new list from an array. Returns: list function List:add(anything e) Appends an object e to the end of the list. Returns the index ...
by FranchuFranchu
Fri Oct 19, 2018 1:07
Forum: Lua Scripting
Topic: Lua API documentation [741]
Replies: 6
Views: 1038

Lua API documentation [741]

function Array:new(arr) function Array:forEach(f) function Array:map(f) function Array:filter(f) function Array:count(f) function Array:add(e, i) function Array:addAll(e, i) function Array:find(e) function Array:contains(e) function ...
by CommanderABab
Sat Sep 08, 2018 23:53
Forum: Transport, Airport, Roads
Topic: One-Way S Bahn/ Einbahn S Bahn
Replies: 5
Views: 2464

Re: One-Way S Bahn/ Einbahn S Bahn

wetguy wrote:
Sat Sep 08, 2018 22:17
The one problem I have with one way railroads is that trains will be able to switch "lanes" on any tile, which just looks strange.
That can be remedied using the

Code: Select all

"dirs"
array.

dirs
by CommanderABab
Tue Sep 04, 2018 23:55
Forum: Plug-In Discussion
Topic: Functional Tornado Siren [WIP]
Replies: 64
Views: 2317

Re: Functional Tornado Siren [WIP]

... 1 }, { "file": "Thunderbolt 1003.mp3", "id": "$Thunderbolt_1003", "type": "sound", "volume": 5 } ] A .json file plugin for Theotown is an ( [ ] array ) of ( { } objects ), not an ( [ ] array ) of ( [ ] arrays ).
by Mg3094066
Tue Sep 04, 2018 4:49
Forum: Plug-In Discussion
Topic: Functional Tornado Siren [WIP]
Replies: 64
Views: 2317

Re: Functional Tornado Siren [WIP]

I have to move it out of the array like this?
by Mg3094066
Tue Aug 21, 2018 23:59
Forum: Problems
Topic: [510] Plugin crash (zzsubresbldgs.json:5344)
Replies: 9
Views: 700

[510] Plugin crash (zzsubresbldgs.json:5344)

Hi, I got the following error with a plugin (zzsubresbldgs.json:5344):

Code: Select all

In /storage/emulated/0/TheoTown/plugins/subres/subres/zzsubresbldgs.json:

java.lang.NullPointerException: Attempt to read from null array
Device: LG-H320 (lge)
Android: 21 (5.0.1)

Thank you in advance.
by CommanderABab
Fri Jul 20, 2018 4:25
Forum: Tutorials and Documentation
Topic: Determining vehicle direction on roads
Replies: 9
Views: 998

Determining vehicle direction on roads

How to change the standard movement on roads: Remember, arrays start with 0. :) innerr.png Subtile Order of Each Road Tile: ..........❌ .....❌ 2 ❌ .❌ 0 ❌ 3 ❌ .....❌ 1 ❌ ..........❌ Moving direction is the sum of: (This is from one of the subtiles above; ...
by CommanderABab
Mon Jul 02, 2018 0:21
Forum: Trash
Topic: [492] Plugin crash (zzofficebldgs.json:8439)
Replies: 13
Views: 997

Re: [492] Plugin crash (zzofficebldgs.json:8439)

Maybe you have an extra comma in a list of objects in an array.

Like here:

Code: Select all

[
              {"":""},{"":""},
]
Hard to know without seeing any code.
by Artem_123
Sat Jun 23, 2018 19:54
Forum: Problems
Topic: [491] Plugin crash (park.json:227)
Replies: 2
Views: 446

[491] Plugin crash (park.json:227)

... (park.json:227): In /data/data/info.flowersoft.theotown.theotown/files/plugins/psrk.zip/psrk/park.json: org.json.JSONException: Unterminated array at character 7 of [ ( "id":"park.png.png", "type":"park", "title":"city park", "text":"a park for your city & town", "influance park":400, "price":10 ...
by THEMAX
Sat May 26, 2018 19:48
Forum: Stories Subforum
Topic: Atlantean Galactic Assembly
Replies: 5
Views: 663

Re: Atlantean Galactic Assembly

... 3,500 sub guns, cargo capacity of 5.5 million, advance stabilizers, 2 main combustion engines, advance reactive armor, 2 magnetic/radiation shield array and advance life support with oxygen recycle systems. (this is for an individual super dreadnought basic load out all 35 of them. all parts can ...

Go to advanced search