[LEGACY/UNSUPPORTED] [390+] Night Plug-in

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 537
Joined: 31 Dec 2017, 13:35
Location: India Pudukkottai
Plugins: Showcase Store
Version: Beta

Platform

Re: [Version 1.2.2] [WINTER]Night Plug-in

#126

Post by sairam »

If you want i can help you. Send me the files you can create only the graphics i'll do the json.

User avatar
Kulche
Pluche
Reactions:
Posts: 1141
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Version 1.2.2] [WINTER]Night Plug-in

#127

Post by Kulche »

I don't really need help. And all I need is to create json, no more graphics are needed :)

User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 537
Joined: 31 Dec 2017, 13:35
Location: India Pudukkottai
Plugins: Showcase Store
Version: Beta

Platform

Re: [Version 1.2.2] [WINTER]Night Plug-in

#128

Post by sairam »

I'll do the json send me the graphics.

User avatar
Wekabu city
Inhabitant of a Megalopolis
Reactions:
Posts: 586
Joined: 29 Aug 2017, 21:07
Location: Germany, Hessia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Version 1.2.2] [WINTER]Night Plug-in

#129

Post by Wekabu city »

We should simplify that...
What about a big dose of JAVA?!
JK programming the code would take forever...
But would be worth your time...

User avatar
Wekabu city
Inhabitant of a Megalopolis
Reactions:
Posts: 586
Joined: 29 Aug 2017, 21:07
Location: Germany, Hessia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Version 1.2.2] [WINTER]Night Plug-in

#130

Post by Wekabu city »

I got no Idea when it would be finished...

User avatar
Kulche
Pluche
Reactions:
Posts: 1141
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Version 1.2.2] [WINTER]Night Plug-in

#131

Post by Kulche »

Nearly done all T residential, that would take forever! :bb

User avatar
Wekabu city
Inhabitant of a Megalopolis
Reactions:
Posts: 586
Joined: 29 Aug 2017, 21:07
Location: Germany, Hessia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Version 1.2.2] [WINTER]Night Plug-in

#132

Post by Wekabu city »

I rewrote all code in 30 minutes, still have a nasty bug, that it gives you a negative (incorrect) length and sometimes a (correct) positive length.

However with my sample texture (ca. 500*100) I got about 300 animation running simultaneously, Wich were of 100 different kinds, better that V1 but still inefficient when applying on large building

User avatar
-LeoLeo-
Inhabitant of a Solar System
Reactions:
Posts: 1624
Joined: 08 Jul 2017, 12:46
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: [Version 1.2.2] [WINTER]Night Plug-in

#133

Post by -LeoLeo- »

Can't you just...... steal the textures ID and add "RGB" tag to the .json make some buildings darker?

Then make some bright yellow 1×2 animations and overlay the window bits??
(and/or billboard?)

(or would the RGB tag make it a flat color? @CommanderABab )

User avatar
ElephantEthan
Inhabitant of a Megacity
Reactions:
Posts: 294
Joined: 26 Aug 2018, 14:07
Plugins: Showcase Store

Platform

Re: [Version 1.2.2] [WINTER]Night Plug-in

#134

Post by ElephantEthan »

-LeoLeo- wrote:
29 Oct 2018, 20:29
Can't you just...... steal the textures ID and add "RGB" tag to the .json make some buildings darker?

(or would that made it a flat color? @CommanderABab )
You need animations for that afaik, and it will look very weird.

User avatar
Kulche
Pluche
Reactions:
Posts: 1141
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Version 1.2.2] [WINTER]Night Plug-in

#135

Post by Kulche »

:lol: lol
Tell me if that works, will start a bit different project :json

User avatar
-LeoLeo-
Inhabitant of a Solar System
Reactions:
Posts: 1624
Joined: 08 Jul 2017, 12:46
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: [Version 1.2.2] [WINTER]Night Plug-in

#136

Post by -LeoLeo- »

Kulche wrote:
29 Oct 2018, 20:38
:lol: lol
Tell me if that works, will start a bit different project :json
Hmmmm.... I'd wonder what that project could be??

User avatar
Kulche
Pluche
Reactions:
Posts: 1141
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Version 1.2.2] [WINTER]Night Plug-in

#137

Post by Kulche »

I won't tell ya :lol:

User avatar
Kulche
Pluche
Reactions:
Posts: 1141
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Version 1.2.2] [WINTER]Night Plug-in

#138

Post by Kulche »

Wait, I'm stupid. RGB tag works only for animation. Let's steal frames for animation and apply these, how wonderful :roll:
...And why did I name my json '2st_nightproject'? "Bad grammar strikes again"!

User avatar
Wekabu city
Inhabitant of a Megalopolis
Reactions:
Posts: 586
Joined: 29 Aug 2017, 21:07
Location: Germany, Hessia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Version 1.2.2] [WINTER]Night Plug-in

#139

Post by Wekabu city »

I got no idea what you are talking about, also can anyone have a look into the JSON code ?

Code: Select all

[ 
 { 

 	"id": "$Wekabu.NMDevtest_1",

      "frames": [
         {
            "bmp": "img.png"
         }
      ],
      "height": 1,
      "monthly price": 1,
      "needs road": true,
      "power": 0,
      "price": 500,
      "title": "DEVTEST",
      "type": "water",
      "water": 10,
      "width": 1,

  "animation": [ 
{ " id " : "Wekabu_nightmaker_6", "x":13, "y": 10  }, // x = 19
{ " id " : "Wekabu_nightmaker_1", "x":12, "y": 11  }, // x = 13
{ " id " : "Wekabu_nightmaker_1", "x":14, "y": 11  }, // x = 15
{ " id " : "Wekabu_nightmaker_2", "x":18, "y": 11  }, // x = 20
{ " id " : "Wekabu_nightmaker_1", "x":11, "y": 12  }, // x = 12
{ " id " : "Wekabu_nightmaker_2", "x":13, "y": 12  }, // x = 15
{ " id " : "Wekabu_nightmaker_1", "x":19, "y": 12  }, // x = 20
{ " id " : "Wekabu_nightmaker_1", "x":10, "y": 13  }, // x = 11
{ " id " : "Wekabu_nightmaker_2", "x":13, "y": 13  }, // x = 15
{ " id " : "Wekabu_nightmaker_5", "x":17, "y": 13  }, // x = 22
{ " id " : "Wekabu_nightmaker_5", "x":10, "y": 14  }, // x = 15
{ " id " : "Wekabu_nightmaker_1", "x":17, "y": 14  }, // x = 18
{ " id " : "Wekabu_nightmaker_4", "x":19, "y": 14  }, // x = 23
{ " id " : "Wekabu_nightmaker_1", "x":10, "y": 15  }, // x = 11
{ " id " : "Wekabu_nightmaker_2", "x":12, "y": 15  }, // x = 14
{ " id " : "Wekabu_nightmaker_3", "x":15, "y": 15  }, // x = 18
{ " id " : "Wekabu_nightmaker_4", "x":19, "y": 15  }, // x = 23
{ " id " : "Wekabu_nightmaker_1", "x":10, "y": 16  }, // x = 11
{ " id " : "Wekabu_nightmaker_2", "x":12, "y": 16  }, // x = 14
{ " id " : "Wekabu_nightmaker_3", "x":15, "y": 16  }, // x = 18
{ " id " : "Wekabu_nightmaker_4", "x":19, "y": 16  }, // x = 23
{ " id " : "Wekabu_nightmaker_1", "x":10, "y": 17  }, // x = 11
{ " id " : "Wekabu_nightmaker_5", "x":13, "y": 17  }, // x = 18
{ " id " : "Wekabu_nightmaker_4", "x":19, "y": 17  }, // x = 23
{ " id " : "Wekabu_nightmaker_1", "x":10, "y": 18  }, // x = 11
{ " id " : "Wekabu_nightmaker_5", "x":13, "y": 18  }, // x = 18
{ " id " : "Wekabu_nightmaker_4", "x":19, "y": 18  }, // x = 23
{ " id " : "Wekabu_nightmaker_1", "x":10, "y": 19  }, // x = 11
{ " id " : "Wekabu_nightmaker_6", "x":13, "y": 19  }, // x = 19
{ " id " : "Wekabu_nightmaker_2", "x":20, "y": 19  }, // x = 22
{ " id " : "Wekabu_nightmaker_1", "x":10, "y": 20  }, // x = 11
{ " id " : "Wekabu_nightmaker_3", "x":14, "y": 20  }, // x = 17
{ " id " : "Wekabu_nightmaker_3", "x":19, "y": 20  }, // x = 22
{ " id " : "Wekabu_nightmaker_2", "x":11, "y": 21  }, // x = 13
{ " id " : "Wekabu_nightmaker_1", "x":14, "y": 21  }, // x = 15
{ " id " : "Wekabu_nightmaker_5", "x":16, "y": 21  }, // x = 21
{ " id " : "Wekabu_nightmaker_7", "x":12, "y": 22  }, // x = 19
{ " id " : "Wekabu_nightmaker_3", "x":15, "y": 23  } // x = 18
] 

} 
 ]
Exception is:
"Java.lang.IllegalStateException: When loading "$Wekabu.NMDevtest_1": No value for id"
I got no idea what that means... :calc
===========================================================
Last edited by Wekabu city on 31 Oct 2018, 17:49, edited 1 time in total.

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

Plugin Creator

Platform

Re: [Version 1.2.2] [WINTER]Night Plug-in

#140

Post by CommanderABab »

Screenshot_20181029-191739.jpg
The

Code: Select all

"animation"
is expecting an

Code: Select all

"id"
, but all you give it are

Code: Select all

" id "
s.

User avatar
Kulche
Pluche
Reactions:
Posts: 1141
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Version 1.2.2] [WINTER]Night Plug-in

#141

Post by Kulche »

That makes me feel... uncomfortable.
Screenshot_2018-10-31-05-56-34.png

User avatar
Wekabu city
Inhabitant of a Megalopolis
Reactions:
Posts: 586
Joined: 29 Aug 2017, 21:07
Location: Germany, Hessia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Version 1.2.2] [WINTER]Night Plug-in

#142

Post by Wekabu city »

Hey there! I finally finsished coding the mess...
Test 1 (32x32 Sprite) was a success, however test 2 (200 x 237) failed minorly
[known Bugs]
  • only heights of 32 supported: its a result of a non-working AWT-Theotown Coordinate conversion. (positive y in AWT goes up, in Theotown down)
  • PM me if you find other bugs
also due to strange bugs (or non-bugs) in AWT the border is automatically non-transparent (color code 16777215 instead of 0). (it shouldn't affect anything right now, however its not tested).

Requires the Runtime to run it also does't create a fully working .json file img file needs to be named 'image.png';
Requires Java's SDK, its not compiled
Attachments
NightmakerRE.zip
Runtime (required to run in Theotown)
(2.53 KiB) Downloaded 158 times
Transperency.zip
JAVA Script (the script Im speaking of)
(935 Bytes) Downloaded 153 times

User avatar
Between3Characters
Metropolitan
Reactions:
Posts: 123
Joined: 04 Oct 2018, 13:31
Plugins: Showcase Store
Version: Beta

Platform

Re: [Version 1.2.2] [WINTER]Night Plug-in

#143

Post by Between3Characters »

Bad background, shouldve been just left a black background.

User avatar
soumya-8974
TheoTown Veteran in Pension
Reactions:
Posts: 834
Joined: 30 Apr 2018, 06:53
Location: India
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Version 1.2.2] [WINTER]Night Plug-in

#144

Post by soumya-8974 »

What do you mean?

User avatar
malsa
Inhabitant of a Multiverse
Reactions:
Posts: 5085
Joined: 10 Feb 2017, 17:40
Location: Malaysia
Plugins: Showcase Store
Version: Beta

Platform

Re: [Version 1.2.2] [WINTER]Night Plug-in

#145

Post by malsa »

Does this project still continue?

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”