generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

I broke RbxUtility

Previous Thread :: Next Thread 
Quenty is online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
11 Feb 2013 12:18 AM
00:14:53.679 - RbxUtility:334: attempt to concatenate local 'ch' (a nil value)
00:14:53.682 - Script "RbxUtility", Line 334
00:14:53.683 - Script "RbxUtility", Line 420
00:14:53.684 - Script "RbxUtility", Line 393
00:14:53.685 - Script "Workspace.Script", Line 26
00:14:53.686 - stack end

So apparently serilizing catalog data is a lot harder then I thought, especially since it's even harder to work with the file.

I'm using Python to dump it all into a big .json file, where I hoped I would be able to process it. Turns out the way ROBLOX stores the catalog, python can't turn it into a dictionary, and the way ROBLOX handles JSON, I can't serialize it.

I think my best option is probably to upload in pieces automatically after using python to process it. I just can't get python it work with it too well.

Perhaps string manipulation + Python + Lua will do it. Anyone else got any ideas/actually know Python?
Report Abuse
Brandonhare is not online. Brandonhare
Joined: 02 May 2007
Total Posts: 11005
11 Feb 2013 12:23 AM
How are you serialising it?
Report Abuse
Quenty is online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
11 Feb 2013 12:35 AM
I'm not really. I'm really splicing it from separate pages into 1 big JSON "page", and then I'm using RbxUtility to remove information, that is, turn it into a table, make a newTable per a catalog entry, and then change it back into JSON.

The problem is the big JSON page is too "big" for ROBLOX. The other thing is I'd really like to be able to do it in just Python, and get a reduced file size in python.

I'm removing certain entries I don't need in order to cut down on the file size. I'll bet I could cut it down even further then 50% if I use # indexes, probably about 90%, so I only have about 100 KB file will a ton of catalog information.

I've been able to compress like 3 pages, but I won't be able to do the whole big page I'll post that in the next post if I ROBLOX let's me.

I think my best hope is string manipulation in Python, separating out each object with string manipulation, and then converting to a Dictionary and then to JSON, or finding a JSON library in Python that works (I've never used Python until tonight).

This could get interesting, but it's definitely a challenge.
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
11 Feb 2013 12:38 AM
Is this for your fancy animations again, like you had in your previous project...?
Report Abuse
Quenty is online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
11 Feb 2013 12:40 AM
I can't post the JSON files, but it's basically a big list of JSON, like this in Lua:

{
{
Name = "Hello"
Data = 3;
MoreData = 5;
};
{
Name = "Hello"
Data = 3;
MoreData = 5;
};
{
Name = "Hello"
Data = 3;
MoreData = 5;
};
{
Name = "Hello"
Data = 3;
MoreData = 5;
};
}

Each catalog entry has it's own table, and there's about 3K of them. Um. I want to store the data like this:

{
{
[1] = "Hello";
[2] = 3;
[3] = 5;
};
{
[1] = "Hello";
[2] = 3;
[3] = 5;
};
{
[1] = "Hello";
[2] = 3;
[3] = 5;
};
{
[1] = "Hello";
[2] = 3;
[3] = 5;
};
}

To save space. If you know how to manipulate strings in python, now would be a nice time to show me how to parse this data (It's in JSON, not Lua tables).
Report Abuse
Quenty is online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
11 Feb 2013 12:41 AM
No, I'm putting the ROBLOX catalog into my admin commands. Basically, it saves me a ton of time from requests like "Can you add a sword", to "Can you add this specific gun, with a morph".

With this, basically I can just tell them to use the catalog.
Report Abuse
TeamDman is not online. TeamDman
Joined: 04 Dec 2009
Total Posts: 897
11 Feb 2013 06:32 AM
This might help,not sure.
http://wiki.roblox.com/index.php/Website_APIs
Report Abuse
Anaminus is not online. Anaminus
Top 100 Poster
Joined: 29 Nov 2006
Total Posts: 5945
11 Feb 2013 06:42 AM
Lua is more powerful than you seem to think, and can do everything you want to accomplish here. If you're having difficulties with python, then just stick with what you're familiar with. Lua Sockets will let you fetch webpages, and there's obviously a json parser available. If Roblox's json format isn't cooperating, then just manually scan it for the information you're looking for. This would be easy since you already know Lua, and the format returned by the catalog still follows very simple patterns that a little regex can take care of. If you need a Lua environment, Lua for Windows has all of these built-in.
Report Abuse
Parthax is not online. Parthax
Joined: 27 Apr 2011
Total Posts: 6941
11 Feb 2013 07:22 AM
i understand that it won't be as easy to use for newer members, but can't you just use insertservice with the ID of the item? pr have they patched ALL uses of insertservice, so that even roblox's items wont be inserted?


[Content Trolled]
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
11 Feb 2013 09:58 AM
I totally agree with Anaminus.

People seem to think Lua is incapable of doing everything...

It just has less documentation on some libraries and where to get them.

I used the wxWidgets library to make a clone of Notepad.
Report Abuse
Quenty is online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
11 Feb 2013 04:17 PM
I just don't want to install another programming language on my computer and figure out how to compile it.

I have a feeling I'm approaching this wrong, but I generally feel as if each extra program = slower boot time for my computer/operating speed. That's probably not true.

How would I go about installing Lua? I see I can compile it myself somehow, or I can use Lua for Windows. Support/help please?
Report Abuse
Quenty is online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
11 Feb 2013 04:36 PM
Lua for Windows is what I"m going with.
Report Abuse
Seranok is not online. Seranok
Joined: 12 Dec 2009
Total Posts: 11083
11 Feb 2013 06:29 PM
google "lua for windows"
click "downloads"

You are smart enough to figure out the rest.
Report Abuse
oxcool1 is not online. oxcool1
Joined: 05 Nov 2009
Total Posts: 15444
11 Feb 2013 06:32 PM
[ Content Deleted ]
Report Abuse
Quenty is online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
11 Feb 2013 09:20 PM
I did it.

Here's what each index (number) is equivalent too..

AssetId
ContentRatingTypeID
IsForSale
IsLimited
IsLimitedUnique
IsPublicDomain
MinimumMembershipLevel
Name
PriceInRobux
PriceInTickets
Sales

http://www.roblox.com/Serilized-Catalog-Data-item?id=106488204

:)
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
12 Feb 2013 01:47 AM
It's probably has more lines than the main script for the Windows 8 OS.

` RIP Erik Cassel `
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
12 Feb 2013 01:48 AM
>It's probably

My bad.

It probably...

` RIP Erik Cassel `
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
12 Feb 2013 01:54 AM
I really should get in web programming... How do you even do web requests on Lua?
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
12 Feb 2013 02:08 AM
http://wiki.roblox.com/index.php/Website_APIs

` RIP Erik Cassel `
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
12 Feb 2013 02:12 AM
Wait, how could you implement it in Lua?
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
12 Feb 2013 02:14 AM
idk.

` RIP Erik Cassel `
Report Abuse
booing is not online. booing
Joined: 04 May 2009
Total Posts: 6594
12 Feb 2013 07:25 AM
HttpGet
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
12 Feb 2013 08:03 AM
Ugh, It's locked...
Report Abuse
8SunTzu8 is not online. 8SunTzu8
Joined: 30 Sep 2011
Total Posts: 8199
13 Feb 2013 02:32 PM
@"seranok trying to keylog us ^"

made my day

A catalog in the admin commands... Hmm...

"If you want to become a Developer or Innovator for CSA, contact me."
Report Abuse
8SunTzu8 is not online. 8SunTzu8
Joined: 30 Sep 2011
Total Posts: 8199
13 Feb 2013 02:36 PM
Found this while looking for Lua for Windows.

"Win32 logical unit application (LUA)"

I don't know if that's Lua or not, but I don't think it is...

So I guess LUA is something, just not Lua.

"If you want to become a Developer or Innovator for CSA, contact me."
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image