Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 27 Sep 2012 05:55 PM |
I have a 3D ROBLOX Logo I built. I wanted to animate it.
First I tried to save it using a table/Cframe values. ROBLOX doesn't support tables that large.
Next, I tried physics, but ROBLOX doesn't like physics and local parts.
So here I am, stuck with a 22756 KB animation file (Just a ton of CFrame values), because ROBLOX doesn't support local physics, or really any sort of 3D local animation that doesn't involve CFrame.
It looks cool, but it makes me cringe. Also, it's only about ~280 frames... |
|
|
| Report Abuse |
|
|
sirsavary
|
  |
| Joined: 27 May 2008 |
| Total Posts: 1222 |
|
|
| 27 Sep 2012 05:57 PM |
Ctrl-Alt-Del?
Also, das what happen when you have dataz. Have you tried zipping it up?
Join the Tamerac RPG Beta Group for exclusive updates! Also, TRADE REQUESTS! |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 27 Sep 2012 06:06 PM |
No, it didn't crash. It works fine. The animation is lovely.
And I can't zip it, I'm using it in-game. |
|
|
| Report Abuse |
|
|
ihaveamac
|
  |
| Joined: 27 Jan 2009 |
| Total Posts: 7511 |
|
|
| 27 Sep 2012 06:13 PM |
So a roughly 22 MB file with an animation with 280 frames?
~iham |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 27 Sep 2012 06:21 PM |
~200 parts, 278 frames, updated once every wait(0), (But slowed down for the animation, that was just recording)..
I guess it's reasonable for the XML that ROBLOX uploads... still
There's got to be a better way. That's really what I'm complaining about. |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 27 Sep 2012 06:25 PM |
Only 157 parts, nevermind. xD
I'll even publish my animation 'log'...
http://www.roblox.com/RobloxLogoAnimationLog-item?id=93710832
Have fun loading that. And Comoj can't load it...
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 23302041 bytes) in /home/a2932395/public_html/get.php on line 60
|
|
|
| Report Abuse |
|
|
ihaveamac
|
  |
| Joined: 27 Jan 2009 |
| Total Posts: 7511 |
|
|
| 27 Sep 2012 06:27 PM |
How do you save the CFrame data?
~iham |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 27 Sep 2012 06:32 PM |
CFrame Value.
1/3 of my game's data happens to be taken up by the animation file. |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
| |
|
ihaveamac
|
  |
| Joined: 27 Jan 2009 |
| Total Posts: 7511 |
|
|
| 27 Sep 2012 06:35 PM |
Can you think of any other ways to store the data?
A StringValue can stably store 200,000 characters. You can use loadstring with that somehow, then use multiple StringValues to store more.
~iham |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 27 Sep 2012 06:48 PM |
Guess what... I tried.
Tables don't like it when I do that. Configuration units w/ CFrame do take up room, but... String manipulation is confusing and not too efficient.
|
|
|
| Report Abuse |
|
|
|
| 27 Sep 2012 06:50 PM |
You may not be amused, but I assure you that I am.
"Have fun loading that. And Comoj can't load it..."
Challenge accepted. |
|
|
| Report Abuse |
|
|
Sorcus
|
  |
 |
| Joined: 29 Nov 2010 |
| Total Posts: 3775 |
|
|
| 27 Sep 2012 06:51 PM |
You said it yourself. We don't support it. Get ready for nasty behavior for trying something we don't support.
~Sorcus |
|
|
| Report Abuse |
|
|
|
| 27 Sep 2012 06:58 PM |
Managed to download it, open it in studio and re-upload it. Ha!
http://www.roblox.com/Challenge-complete-item?id=93716664
You have way too many CFrame values in there. Store it all as numbers or something. |
|
|
| Report Abuse |
|
|
Droban
|
  |
| Joined: 12 Aug 2012 |
| Total Posts: 157 |
|
|
| 27 Sep 2012 06:59 PM |
Convert it to string. Split it up into separate tables that are maybe 1/10th of the original size. Have it only load in values as it need them.
If string manipulation to get the value based on current frame is fast enough, you could split it up in a way like that, using match to get specific data based on frame number. If it's too slow, split it up into more stringvalues, or load the whole table while you need it, then remove it when you finish.
Remove the frames you won't be using in online mode. That means you should remove like one half or one third of them (or even more), because setting a lot of CFrames at once can take up a lot of the network stuffz. You could also do it locally to solve that problem.
It's obvious what you're trying now won't work because it's simply too large. You need to split it into smaller pieces. |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 27 Sep 2012 07:09 PM |
I didn't say you can't load it. I'm just saying it's laggy.
And yeah, this always happens. ROBLOX doesn't support a lot of things I would _like_ to be able to do.
Umm... also, I'm using all of the frames in online mode.
But perhaps I can insert service it locally, and then destroy it and garbage collect it after....
Not that ROBLOX would enjoy that kind of server load.... but.. |
|
|
| Report Abuse |
|
|
Droban
|
  |
| Joined: 12 Aug 2012 |
| Total Posts: 157 |
|
|
| 27 Sep 2012 07:14 PM |
The problem is its size. It's hard to upload, hard to run, hard to download, and hard to use (not all of those may be true, but you get the point). By splitting it up, you reduce the load on the server and on the players. By using InsertService, you reduce your place size. By loading or getting each part separately, you save memory by not loading the whole table. By only playing animations locally, you reduce the need to slow it down for the network.
Split + InsertService + Only loading parts of it + Locally played animations = Working? |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 27 Sep 2012 07:44 PM |
| upload a video somewhere on the animation. |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 27 Sep 2012 07:48 PM |
It's a 10 second animation.
I'll try to upload my game, if it works... |
|
|
| Report Abuse |
|
|
Tenal
|
  |
| Joined: 15 May 2011 |
| Total Posts: 18684 |
|
|
| 27 Sep 2012 07:50 PM |
| Are you STILL at making that thing work? |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 27 Sep 2012 07:52 PM |
http://www.roblox.com/Supremacy-Pre-Alpha-place?id=89798334
Load time is slow, but it loads, the animation looks good... I think it's worth it.
Also, my game has some cool camera effects... xD |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 27 Sep 2012 07:53 PM |
| @Tenal It works. It just has a few side effects, like a long load up time when the game starts. |
|
|
| Report Abuse |
|
|
|
| 27 Sep 2012 07:58 PM |
| Encode it and store in a single stringvalue! |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
| |
|
sirsavary
|
  |
| Joined: 27 May 2008 |
| Total Posts: 1222 |
|
|
| 27 Sep 2012 08:47 PM |
The downside to giving everyone admin commands is that at some point someone will ban everyone.
Join the Tamerac RPG Beta Group for exclusive updates! Also, TRADE REQUESTS! |
|
|
| Report Abuse |
|
|