help

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
World_uate
Small-town resident
Reactions:
Posts: 33
Joined: 31 May 2023, 07:32

help

#1

Post 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

User avatar
ur_sc4_guy
Metropolitan
Reactions:
Posts: 135
Joined: 16 Jun 2022, 20:01
Location: Any ambanivohitra any e, Madagascar
Plugins: Showcase Store

Plugin Creator

Platform

Re: help

#2

Post 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?

User avatar
World_uate
Small-town resident
Reactions:
Posts: 33
Joined: 31 May 2023, 07:32

Re: help

#3

Post by World_uate »

code.json
(426 Bytes) Downloaded 76 times

User avatar
World_uate
Small-town resident
Reactions:
Posts: 33
Joined: 31 May 2023, 07:32

Re: help

#4

Post 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 80 times

User avatar
ur_sc4_guy
Metropolitan
Reactions:
Posts: 135
Joined: 16 Jun 2022, 20:01
Location: Any ambanivohitra any e, Madagascar
Plugins: Showcase Store

Plugin Creator

Platform

Re: help

#5

Post 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}]
	}
] 
	

Post Reply Previous topicNext topic

Return to “Problems”