[Fixed] can't open the game after edit the JSON and picture

Do you have any issues? Don't hesitate to tell us about it.
User avatar
khadafi laidi
Inhabitant of a Planet
Reactions:
Posts: 1313
Joined: 16 Dec 2016, 13:11
Location: Ternate, Indonesia
Plugins: Showcase Store
Version: Beta

Platform

[Fixed] can't open the game after edit the JSON and picture

#1

Post by khadafi laidi »

Anyone can help? i currently use version 232

User avatar
Ahmad Nur Aizat
TheoTown Veteran
Reactions:
Posts: 8260
Joined: 25 Oct 2016, 15:20
Location: Johor Bahru
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

#2

Post by Ahmad Nur Aizat »

I used 236, with my building and the reworked ones added

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

#3

Post by Lobby »

It's likely that there's a mistake in your json-file. You might share it here so we can help you.
Last edited by Lobby on 18 Feb 2017, 17:10, edited 1 time in total.

User avatar
NisekoKilla
Inhabitant of a Megacity
Reactions:
Posts: 345
Joined: 16 Nov 2016, 15:22
Location: UK
Plugins: Showcase Store
Version: Beta

Platform

#4

Post by NisekoKilla »

You didd something wrong with strings..

User avatar
CommanderABab
AB
Reactions:
Posts: 11107
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

#5

Post by CommanderABab »

Be sure Theotown is not a running task. If it is, close it and retry.

If still a problem:

1 Copy the plugins folder to a safe place or rename it plugins_backup. Check your json files for syntax.
This is my json file for bigcom

Code: Select all

[
   {
      "id": "$Bigcom4x4.plugin.uniik.id.res48", ; must be unique
      "type": "commercial",    ; must be one of industrial, commercial, or residential
      "author": "CommanderABab",
      "width": 4,  ; width must equal height.  The total  of all your widths in your json files must be less than 32.
      "height": 4, ; an integer between 1 and 8.
      "frames": [
         {
            "bmp": "Bigcom.png"  ; make sure the file exists in the corresponding plugins/name folder
         }
      ],
      "smoke": [
         {
            "id": "$smoke07", ;ask Lobby, I've used $smoke07 and $smoke02.
            "x": 5,  ; must be less than width*32.
            "y": -12 ; must be less than (height of your .png file) less than 256.
         }
      ],
      "level": 3  ; an integer 1-3.
   }
]
2 Delete the theotown/plugins folder. Create an empty one.

3 Close Theotown.

4 Don't try to run any good cities if they have a lot of plugin buildings in them. (You will lose the benefits they provide and some population if you do.)

5 Open Theotown. If sucessful, then: If not, go to 6.

5a One by one, copy a folder from the backup folder into the new plugins folder and repeat from 3.

6. You have found the or one of the offending plugins. Check the .png file: make sure the width is a multiple of 32 anf the height is 256 or less. Recheck the json file for syntax.

~Edited by Lobby, we have code boxes for better reading :)

User avatar
CommanderABab
AB
Reactions:
Posts: 11107
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

#6

Post by CommanderABab »

Ah, I see it there now. :oops:

Locked Previous topicNext topic

Return to “Problems and Errors (bugs)”