Page 1 of 1

help

Posted: 20 Jul 2023, 19:32
by World_uate
IN SHORT, WHEN I CREATED MY NIGHT ANIMATION, AND MADE A SMALL json CODE FOR IT AND SPECIFIED THE ID, AND IN THE json CODE I SPECIFIED THE ID ANIMATION AND COORDINATES, BUT WHEN I WRITE THE SAME ID IN THE CODE FOR NIGHT ANIMATION AND FOR THE PARK CODE, I GET AN ERROR I CHANGED THE CODE, NOTHING HELPS, PLEASE HELP, THIS IS MY FIRST PLUGIN WITH NIGHT ANIMATION :bq :bq :bq :bb :json :bb

Re: help

Posted: 21 Jul 2023, 14:26
by ur_sc4_guy
World_uate wrote:
20 Jul 2023, 19:32
IN SHORT, WHEN I CREATED MY NIGHT ANIMATION, AND MADE A SMALL json CODE FOR IT AND SPECIFIED THE ID, AND IN THE json CODE I SPECIFIED THE ID ANIMATION AND COORDINATES, BUT WHEN I WRITE THE SAME ID IN THE CODE FOR NIGHT ANIMATION AND FOR THE PARK CODE, I GET AN ERROR I CHANGED THE CODE, NOTHING HELPS, PLEASE HELP, THIS IS MY FIRST PLUGIN WITH NIGHT ANIMATION :bq :bq :bq :bb :json :bb
can you show me the code?

Re: help

Posted: 21 Jul 2023, 16:07
by World_uate
code.json
(426 Bytes) Downloaded 276 times

Re: help

Posted: 21 Jul 2023, 16:10
by World_uate
Some SC4 Fan wrote:
21 Jul 2023, 14:26
World_uate wrote:
20 Jul 2023, 19:32
IN SHORT, WHEN I CREATED MY NIGHT ANIMATION, AND MADE A SMALL json CODE FOR IT AND SPECIFIED THE ID, AND IN THE json CODE I SPECIFIED THE ID ANIMATION AND COORDINATES, BUT WHEN I WRITE THE SAME ID IN THE CODE FOR NIGHT ANIMATION AND FOR THE PARK CODE, I GET AN ERROR I CHANGED THE CODE, NOTHING HELPS, PLEASE HELP, THIS IS MY FIRST PLUGIN WITH NIGHT ANIMATION :bq :bq :bq :bb :json :bb
can you show me the code?
code.json
(426 Bytes) Downloaded 223 times

Re: help

Posted: 21 Jul 2023, 17:23
by ur_sc4_guy
@World_uate

Code: Select all

[
	{
		"id":"$pcw_parkWorlduate00",
		"type":"park",
		"author":"Plugin creator website 3.0 & World_uate",
		"width":6,
		"height":6,
		"frames":[{"bmp":"AMRET.png"}],
		"title":"Forest Park",
		"text":"This park is like a little forest.",
		"price":30000,
		"monthly price":20,
		"influence park":150,"animation":[{"id":"Purt","x":0,"y":-94}]
	},
	{
		"id":"Purt",
		"type":"animation",
		"light":true,
		"light switching":true,
		"frames":[{"bmp":"moydwani.png","handle y":8}]
	}
]
You must define the night animation before defining the building.
What I mean? the night animation didn't existed the moment you declared it as a the building's night animation.
define all of the animations that a building needs before creating a building.
so, that would be the fixed code:

Code: Select all

[
       {
		"id":"Purt",
		"type":"animation",
		"light":true,
		"light switching":true,
		"frames":[{"bmp":"moydwani.png","handle y":8}]
	}, 
	{
		"id":"$pcw_parkWorlduate00",
		"type":"park",
		"author":"Plugin creator website 3.0 & World_uate",
		"width":6,
		"height":6,
		"frames":[{"bmp":"AMRET.png"}],
		"title":"Forest Park",
		"text":"This park is like a little forest.",
		"price":30000,
		"monthly price":20,
		"influence park":150,"animation":[{"id":"Purt","x":0,"y":-94}]
	}
] 
	

Re: help

Posted: 18 Jan 2025, 17:26
by demonhunter
ur_sc4_guy wrote:
21 Jul 2023, 17:23
@World_uate

Code: Select all

[
	{
		"id":"$pcw_parkWorlduate00",
		"type":"park",
		"author":"Plugin creator website 3.0 & World_uate",
		"width":6,
		"height":6,
		"frames":[{"bmp":"AMRET.png"}],
		"title":"Forest Park",
		"text":"This park is like a little forest.",
		"price":30000,
		"monthly price":20,
		"influence park":150,"animation":[{"id":"Purt","x":0,"y":-94}]
	},
	{
		"id":"Purt",
		"type":"animation",
		"light":true,
		"light switching":true,
		"frames":[{"bmp":"moydwani.png","handle y":8}]
	}
]
You must define the night animation before defining the building.
What I mean? the night animation didn't existed the moment you declared it as a the building's night animation.
define all of the animations that a building needs before creating a building.
so, that would be the fixed code:

Code: Select all

[
       {
		"id":"Purt",
		"type":"animation",
		"light":true,
		"light switching":true,
		"frames":[{"bmp":"moydwani.png","handle y":8}]
	}, 
	{
		"id":"$pcw_parkWorlduate00",
		"type":"park",
		"author":"Plugin creator website 3.0 & World_uate",
		"width":6,
		"height":6,
		"frames":[{"bmp":"AMRET.png"}],
		"title":"Forest Park",
		"text":"This park is like a little forest.",
		"price":30000,
		"monthly price":20,
		"influence park":150,"animation":[{"id":"Purt","x":0,"y":-94}]
	}
] 
	
Can you help me about handle X handle Y. Give me a frame and how to work