[plugin] rex_json_builder, rex_XMLWriter

Post your work in progress addons and get feedback

Post » Sat Jan 09, 2016 1:37 pm

Build JSON structure.
Image
[{"a":10,"b":20,"c":null},{"a":30,"b":40,"c":true}]


Document, plugin and sample capx are included.


----

Build XML structure
Image
<?xml version="1.0" encoding="UTF-8" ?><note><Date Year="2016" Month="1" Date="31" /><Author Name="Rex.Rainbow" Gender="Male" /></note>

Document, plugin and sample capx are included.
Last edited by rexrainbow on Tue May 17, 2016 9:40 am, edited 4 times in total.
B
107
S
25
G
225
Posts: 4,327
Reputation: 128,333

Post » Sat Jan 09, 2016 2:40 pm

Bravo~ Smart design!!
B
70
S
15
G
4
Posts: 187
Reputation: 7,310

Post » Fri Jan 15, 2016 9:10 am

Awesome! Nice integration into C2.

Actually, this should be implemented officially.
B
45
S
11
G
4
Posts: 511
Reputation: 7,381

Post » Mon Feb 01, 2016 7:24 am

Add rex_XMLWriter plugin.
Image
<?xml version="1.0" encoding="UTF-8" ?><note><Date Year="2016" Month="1" Date="31" /><Author Name="Rex.Rainbow" Gender="Male" /></note>


Reference: XMLWriter
B
107
S
25
G
225
Posts: 4,327
Reputation: 128,333

Post » Fri Mar 11, 2016 10:40 pm

Nice, thanks! The dropbox link seems to be broken.
B
17
S
2
Posts: 88
Reputation: 1,503

Post » Sat Mar 12, 2016 1:50 am

@hmott

Thanks, I had fixed the download link.
B
107
S
25
G
225
Posts: 4,327
Reputation: 128,333

Post » Sat Mar 12, 2016 6:15 am

As always - outstanding work...!! Thank you!
B
68
S
17
G
65
Posts: 2,186
Reputation: 41,312

Post » Sun Apr 10, 2016 8:54 pm

Looks like an amazing plugin. Do you have an example how to load external JSON/XML from HTTP request and parse?
B
28
S
8
G
2
Posts: 58
Reputation: 2,586

Post » Sun Apr 10, 2016 11:03 pm

ethanpil wrote:Looks like an amazing plugin. Do you have an example how to load external JSON/XML from HTTP request and parse?

These plugins are made for building Json/Xmlcsv data structure in event sheet, not loading from string.
B
107
S
25
G
225
Posts: 4,327
Reputation: 128,333

Post » Thu Apr 28, 2016 2:03 am

Hello @rexrainbow

I'm using your plugin today, and I find a bug on instanceProto.add_value() method, line 62. The problem is that property this.current_object is undefined, and throw a javascript exception in a loop. This problem lock the browser and crash the game :cry:
I solved this easily adding a if condition to check if this property is defined. Something like this:

Code: Select all
 else if(this.current_object)
            this.current_object[k_] = v_;
 


So, I have some questions to you:

    * How can I contribute with your plugins? Is the code in github/gitlab or similar remote repository?
    * How can I "push" or "send" this fix to you?
    * Why do you not realize a merge with json-v1.1 into a only one plugin?

Many thanks for your amazing job creating a wonderfull plugins and share free with us. You are a example to follow guy! I'm learning so much reading the code of your plugins :D
Last edited by mfdeveloper on Thu Apr 28, 2016 5:13 pm, edited 3 times in total.
B
3
Posts: 4
Reputation: 183

Next

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 1 guest