Search found 3037 matches

by Lobby
Mon Jul 13, 2020 8:56
Forum: Resources
Topic: Building templates
Replies: 23
Views: 9152

Re: Building templates

Thx, it's fixed :jb:
by Lobby
Sun Jul 12, 2020 10:20
Forum: Tutorials and Documentation
Topic: [1.8.96] Plugin id aliases
Replies: 0
Views: 46

[1.8.96] Plugin id aliases

A new feature introduced with version 1.8.96 are plugin ids aliases. They can be useful if you want to change the ids of objects that can be used by others (e.g. light definitions). Since changing the ids would break plugins that depend on the former ids you can now specify aliases for the id under ...
by Lobby
Sat Jul 11, 2020 18:13
Forum: Problems and Errors (bugs)
Topic: green arrow disappears...
Replies: 1
Views: 90

Re: green arrow disappears...

Which green arrow? Do you need the plugin store? Can you still access it via the game menu?
by Lobby
Sat Jul 11, 2020 12:59
Forum: Lua Scripting
Topic: [1.8.95] Plugin settings
Replies: 5
Views: 103

Re: [1.8.95] Plugin settings

Since nil is also considered false in Lua I have to check if it is actually nil before applying a default value. I have to ensure that the variable contains true or false because the game expects a boolean value in order to show the checkbox. Although nil is considered as false, it is not the same a...
by Lobby
Thu Jul 09, 2020 9:49
Forum: Lua Scripting
Topic: [1.8.95] Plugin settings
Replies: 5
Views: 103

Re: [1.8.95] Plugin settings

It's like the input dialog for rules in online mode. You use it to edit some sort of text.
by Lobby
Wed Jul 08, 2020 14:39
Forum: Lua Scripting
Topic: [1.8.95] Plugin settings
Replies: 5
Views: 103

[1.8.95] Plugin settings

Version 1.8.95 will allow your plugin to add own settings to the game's settings window by providing a script:settings() function in a Lua script that is used in your plugin. :img image.png -- We define the local variable for our settings table here so that our functions can see it local settings fu...
by Lobby
Tue Jul 07, 2020 8:15
Forum: Tutorials and Documentation
Topic: Cars
Replies: 71
Views: 14769

Re: Cars

No, there's not. You'd have to write the template yourself if you need one. See content_car.json in the json resource topic for the needed attributes.
by Lobby
Mon Jul 06, 2020 17:38
Forum: Game Discussion
Topic: New UI and UX feedback
Replies: 21
Views: 600

Re: New UI and UX feedback

image.png
image.png
image.png
by Lobby
Mon Jul 06, 2020 11:57
Forum: Tutorials and Documentation
Topic: Car chains
Replies: 11
Views: 2515

Re: Car chains

Basically yes, adding

Code: Select all

"flag normal": false,
"flag train": true
to your car chain would allow it to drive on rails. However, you need a building (e.g. a station) that spawns it because it won't be spawned automatically.
by Lobby
Sat Jul 04, 2020 19:56
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 87
Views: 949

Re: Lua chatbox

Thx, try it with

Code: Select all    Reset

City.countBuldingsOfType()
Interactive Lua editor
Run
instead. Will be fixed in 1.8.91.
by Lobby
Thu Jul 02, 2020 22:41
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 87
Views: 949

Re: Lua chatbox

distian wrote:
Wed Jul 01, 2020 19:16
Anyway, that is sometime give you an answer not from the array. :bt
Are you sure?

Regarding your issues with road decorations, how does your exact code look like? Also, overlay is not meant to be used to build stuff, although you can do that :mine
by Lobby
Thu Jul 02, 2020 11:29
Forum: Forum
Topic: Broken directory thingy in the forums
Replies: 4
Views: 160

Re: Broken directory thingy in the forums

How do you get that issue?
by Lobby
Thu Jul 02, 2020 10:29
Forum: Screenshots
Topic: small german village
Replies: 3
Views: 216

Re: small german village

It looks relaxing, indeed :bc
by Lobby
Wed Jul 01, 2020 14:12
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 87
Views: 949

Re: Lua chatbox

Did you use Builder.isRoadDecoBuildable to check if it is buildable in the first place? Road decorations can define requirements like flags and alignment for the road they can be placed on.
by Lobby
Wed Jul 01, 2020 10:00
Forum: News
Topic: Plugin Store Activity in June 2020
Replies: 0
Views: 215

Plugin Store Activity in June 2020

<r>Hello everyone, it's time for some Plugin Store statistics!<br/> <br/> <SIZE size="200"><s>[size=200]</s>New Plugins<e>[/size]</e></SIZE><br/> In total <B><s>[b]</s>113 new plugins<e>[/b]</e></B> have been submitted in June 2020. Most of them were contributed by:<br/> <SIZE size="120"><s>[size=12...
by Lobby
Mon Jun 29, 2020 22:06
Forum: Plug-In Discussion
Topic: Sneak peak for my space plugin!
Replies: 112
Views: 10996

Re: Sneak peak for my space plugin!

It looks kind of dark, but also really modern :)
by Lobby
Mon Jun 29, 2020 20:16
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 87
Views: 949

Re: Lua chatbox

-- Bearbear local function seperate(value) local result = "" value = tostring(value):reverse() for set in value:gmatch("..?.?") do result = result..set.."," end result = result:sub(1, -2):reverse() return result end -- Internet function comma_value(amount) local formatted = amount while true do for...
by Lobby
Mon Jun 29, 2020 16:35
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 87
Views: 949

Re: Lua chatbox

Found another solution that also uses gsub here : function comma_value(amount) local formatted = amount while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if (k==0) then break end end return formatted end print(comma_value(1234567)) In other languages you'd be able to u...
by Lobby
Mon Jun 29, 2020 15:56
Forum: Problems and Errors (bugs)
Topic: Wrong night animation
Replies: 3
Views: 462

Re: Wrong night animation

@Kulche nothing to see here, I fixed it :)
    |\__/,|   (`\
  _.|o o  |_   ) )
-(((---(((--------

Go to advanced search