Home > Community > Community > Discussions > Other > Discussion: [UPDATE] Unity 5 Compatibility Update - Merged w/Official Repo
12 Comments - 16928 Views
Submitted By -BluetoothBoy- on 15/03/29
Mars Explorer, BluetoothBoy, Community, Discussions, Other 

Dunno how many of you guys are aware, but I am in the process of making the Mars source compatible with Unity 5. However, while debugging the scripts, I have hit a roadblock. In WhirldIn.js, the Ionic.zlib GZip compression stuff seems to be unrecognized (saying Ionic is an unrecognized identifier). There is basically no documentation on this particular thing, so I have no workaround. If anyone knows how to work around this or fix it, please let me know so I can continue debugging. I can be more specific if need be.
 
3/30/15 - Unity 5 compatibility update merged with Mars Explorer's official GitHub repository. Everything except the BuildPipeline was updated (and by updated I mean the script errors and warnings and API changes that came with moving to Unity 5 have been fixed), as the BuildPipeline API switches will take a bit of time and effort to complete, and since I am not the original writer of the source code, I am not 100% certain how everything fits together (there is unfortunately not a ton of commenting in the code). The host game menu/level also seems to be broken at the moment, but I'm not sure whether or not it has to do with networking, a script bug, or the Unity 5 upgrade. I will do my best to keep in touch with Aubrey and see what I can get sorted out. If anyone wants to take what I've done so far and continue, please feel free to do so.

» Reply to Discussion Threaded Hybrid Flat 12 Replies
» Reply to Comment
Re: I have run into a roadblock in updating the Mars Explorer source code...
4 weeks - 32,767v
Posted 2015/03/29 - 17:36 GMT
Hi BTB, you could try emailing aubreyfalconer@gmail.com He sometimes will promptly answer all questions and other times, he won't reply at all. Last time he and I talked, he seemed excited about this github project then he didn't follow though on some details.

As far as I know, no one else with that kind of knowledge visits this site anymore. It could be that _ACE_ would or could help. Maybe contact him through the Terrium site?
» Reply to Comment
Re: I have run into a roadblock in updating the Mars Explorer source code...
13 hours - 1,093v
Posted 2015/03/29 - 19:21 GMT
Thanks, krunch. I'll try Aubrey first, and _ACE_ if I don't get a response from him. :)
 
EDIT: Email sent. :)
» Reply to Comment
Re: I have run into a roadblock in updating the Mars Explorer source code...
4 days - 9,791v
Posted 2015/03/29 - 19:34 GMT
I have code that works in Unity 4 on my old computer, somewhere (a pre-Terrium version definitely exists in my backups). I can probably get you that at some point, if it would help.
 
The Ionic.zlib.GZip stuff is NOT required for Whirld to work. There was some stuff that Aubrey was developing that didn't require Unity Pro to work (that I've since developed into a full system, but without a non-unity editor or a game to use it in it's pointless.) You can remove most of the functions that use it. You only need the ones that use assetbundles and .utws.

Ionic.zlib is a free, open-source zipping library for .NET languages like uJS. It's used because Unity prevents programmers from having access to the standard  compression libraries (don't ask me why, seems like they just don't like compression)
 
First time I check this site in months and this pops up :)
» Reply to Comment
Re: I have run into a roadblock in updating the Mars Explorer source code...
13 hours - 1,093v
Posted 2015/03/29 - 21:03 GMT
Hey! Well, good to know that it's not required. However, I have since found a solution to the issue. All that was missing was Ionic.zip.dll from the Assets folder. Dropped that in, and it worked like a charm. As such, I won't bother removing the compression code.
 
Now I just have 67 warnings left to go through and fix. API updates can be grueling for a project like this. I'll let you know if I have any questions. :)
» Reply to Comment
Re: I have run into a roadblock in updating the Mars Explorer source code...
4 days - 9,791v
Posted 2015/03/31 - 22:30 GMT
Sweet! If I can help at all, throw a message my way - I've worked on practically the same code for quite a while now. Though I'm sure you're finding your way around it nicely :)

When I said it's not required, I meant that it's used in some code that doesn't get used because none of the worlds that I'm aware of use it. I'm sure that if you fed WhirldIn.js a world containing, say, a terrain file, it would need the Ionic library.

If you're planning to release an updated version of "original" Mars, I could push it in Eric's direction. He might be willing to host it for you (no promises).

Edit: didn't load some posts regarding the server list.

The list server relies on the Unity builtin networking. The Unity server system performs a version check when it gets connections. As such, anything built in any unity version outside of 2.6 will not connect to any server hosted in the current version. So you're doing nothing wrong - the server code from Unity is just irrational.
» Reply to Comment
Re: I have run into a roadblock in updating the Mars Explorer source code...
13 hours - 1,093v
Posted 2015/04/01 - 16:32 GMT
Thanks for the offer! I probably could use some help at some point - I'll let you know! Feel free to look at what I've accomplished so far in the Git repo, and definitely contribute if you have the time!
 
As to the networking, I figured it was something like that. My bigger question, however, lies in the 'Host Game' level, and why it doesn't show up at all when the button is clicked. Is there a network check before the GUI is shown? It seems to me that it wouldn't/shouldn't be that way. If you have Unity 5 and a minute, could you download the project I linked and see what the issue might be? Since you are likely a bit more familiar with the code than I am at the moment, you might catch something I missed.
» Reply to Comment
Re: I have run into a roadblock in updating the Mars Explorer source code...
4 days - 9,791v
Posted 2015/04/02 - 12:21 GMT
I thinm I remember a problem like that. I'll take a look if I can find time (exam season - finding time for anything is difficult and I'm currently engaged in a complete rewrite of two games)
» Reply to Comment
Re: I have run into a roadblock in updating the Mars Explorer source code...
13 hours - 1,093v
Posted 2015/04/02 - 21:18 GMT
Alright, thanks! I totally understand about the school stuff; I'm in my senior year of highschool myself! XD
 
Interestingly enough, I am also working on another game with a friend.
» Reply to Comment
Re: [UPDATE] Unity 5 Compatibility Update - Merged w/Official Repo
1 week - 32,767v
Posted Feb 5th - 1:20 GMT
aaand the interesting discussion ends suddenly :'(
» Reply to Comment
Re: [UPDATE] Unity 5 Compatibility Update - Merged w/Official Repo
3 days - 7,709v
Posted Feb 6th - 18:07 GMT
This is my land lamo! Get out! Go back BACK TO THE SHADOWWWSSSSSSSSS
» Reply to Comment
Re: [UPDATE] Unity 5 Compatibility Update - Merged w/Official Repo
1 week - 32,767v
Posted Feb 14th - 23:02 GMT
this is the shadows
» Reply to Comment
Re: [UPDATE] Unity 5 Compatibility Update - Merged w/Official Repo
3 days - 7,709v
Posted Mar 24th - 22:34 GMT
I meant go back to the station with furhspud or whatever his name is.

» Reply to Discussion Threaded Hybrid Flat 12 Replies
 

This website is powered by Plexpedia
Usage of this site constitutes agreement to the » Legal Stuff