Jump to content

LEGO Island REDUX


bphillips09
 Share

Recommended Posts

Fluffy Cupcake
2 hours ago, bphillips09 said:

Does anyone who knows about 3d modelling know if it's possible to remove the water mesh from the Island OBJ without messing up the material order? I tried removing the water face in Meshlab but when I reimported it back into Unity all the materials were assigned to the wrong objects. If I manually edit the MTL file and remove the WATER2X entry, everything gets even more screwed up. I ended up having to revert to a backup yesterday because I would have had to go in and manually assign each material again.

Does this do anything for you? I just moved all water vertices to one point so the water is still existent but not really (you will notice water is sill in the mtl).

I left the materials applied as is, meaning you'll have to change the .mtl to point to the HD ones yourself.

https://www.dropbox.com/s/sfeck8z66nkl9az/IsleNoWaterButStillWater.zip?dl=0

Link to comment
Share on other sites

bphillips09
35 minutes ago, Xiron said:

Does this do anything for you? I just moved all water vertices to one point so the water is still existent but not really (you will notice water is sill in the mtl).

I left the materials applied as is, meaning you'll have to change the .mtl to point to the HD ones yourself.

https://www.dropbox.com/s/sfeck8z66nkl9az/IsleNoWaterButStillWater.zip?dl=0

I'm going to back up the Unity project before I try again, and that usually takes about 10-15 minutes, so I'll try this out later today and let you know.

Link to comment
Share on other sites

Diving through the code was fascinating. While there were many things I could learn from, what terrified me was the amount of Invoke() and InvokeRepeating() calls. I'm not the best programmer in the world, but presumably if you need to use many of these calls across many scripts, that might be a design issue rather than good flow. Could be entirely wrong, though.

 

I have a question regarding the code you posted;

Spawn (plants.transform.GetChild (i).name.Substring (0, plants.transform.GetChild (i).name.Length - 5));

I had a look at the spawn function, and it's an absolute mess. Out of curiosity, why are you using strings? There are data structures such as Lists and Dictionaries that allow you to use compile-time constants, which would reduce overhead and the complexity of the spawn code, and it would make the code easier to read since you're not doing complex string operations. Furthermore, what's the reasoning for reversing normals? I'm intrigued because I've never seen that before.

 

I also noticed that you use GameObject.Find() in at least one Update() [TurnOffListener]. From what I learnt, GameObject.Find() is even slower than GameObject.GetComponent<>(), and so you should be avoiding using it in Update() at all costs.

Edited by Ben2x4
Link to comment
Share on other sites

bphillips09
38 minutes ago, Ben2x4 said:

Diving through the code was fascinating. While there were many things I could learn from, what terrified me was the amount of Invoke() and InvokeRepeating() calls. I'm not the best programmer in the world, but presumably if you need to use many of these calls across many scripts, that might be a design issue rather than good flow. Could be entirely wrong, though.

I started out using Coroutines that yielded after a certain amount of time, but that ended up not giving me the result that I wanted. I'm going to eventually replace most uses of InvokeRepeating or Invoke with Coroutines since they don't use reflection and have much less of an overhead, especially in cases where there needs to be a lot of processing or calculations done.

 

38 minutes ago, Ben2x4 said:

 


Spawn (plants.transform.GetChild (i).name.Substring (0, plants.transform.GetChild (i).name.Length - 5));

I had a look at the spawn function, and it's an absolute mess. Out of curiosity, why are you using strings? There are data structures such as Lists and Dictionaries that allow you to use compile-time constants, which would reduce overhead and the complexity of the spawn code, and it would make the code easier to read since you're not doing complex string operations.

 

 

The only reason I'm using strings here is because the DevConsole asset that I'm using only takes in string parameters. It would be much easier to use almost any kind of collections, but I didn't write the Console code so I don't have a way to get around it without rewriting it. 

 

Since spawning objects likely won't be an integral part of the game, I'm not too worried about the spawn function, but it definitely is a little messy. 

 

38 minutes ago, Ben2x4 said:

Furthermore, what's the reasoning for reversing normals? I'm intrigued because I've never seen that before.

All of the objects on the island (including the island itself) were extracted from the original game's World.wdb file. On conversion to Obj, almost all of the faces were inverted. Instead of going into blender and reversing the faces of 50+ objects, I'm just doing it right before runtime. Down the road, however, I'll probably have inverted enough faces to where I won't have to reverse the faces in Unity.

 

38 minutes ago, Ben2x4 said:

I also noticed that you use GameObject.Find() in at least one Update() [TurnOffListener]. From what I learnt, GameObject.Find() is even slower than GameObject.GetComponent<>(), and so you should be avoiding using it in Update() at all costs.

I don't even remember what I used that script for, but it's not attached to anything now so it isn't in use. I'm only using GameObject.Find() occasionally when I have static or private references or need to reference a parent object in the hierarchy.

 

Link to comment
Share on other sites

Alrighty, cool stuff. I'm still fairly new to coroutines (would probably help my AI system stuff) so it's reminded me to go back and research those. Keep up the good work :)

Link to comment
Share on other sites

bphillips09

Does anyone have any suggestions for a loading video/animation? Now that all the interiors and everything are actually on the island and not in their own separate scenes (for real-time views), the game takes a few seconds to load after clicking the Run button. I think it would be cool to have a lego-themed loading video. Examples: 

Quote

Kh2Osoy.gif

Quote

lego-loader-final.gif

 

^I'd use one of these, but I didn't create them. Kinda wish I did, they're really cool.

 

 

Something like this would be cool, especially if we used the original faces from the World.wdb file:

Quote

06-spinner.gif

 

Link to comment
Share on other sites

4 hours ago, bphillips09 said:

Does anyone have any suggestions for a loading video/animation? Now that all the interiors and everything are actually on the island and not in their own separate scenes (for real-time views), the game takes a few seconds to load after clicking the Run button. I think it would be cool to have a lego-themed loading video. Examples: 

The last one gives me ideas. I'll see if I can whip up a good animation or two inspired by it (though they probably won't be finished tonight, I'm kinda slow at art, especially animations.)

  • Like 2
Link to comment
Share on other sites

I'm working on a loading screen animation as well.

 

Just don't expect it to be brilliant or anything, its not much so far.

Link to comment
Share on other sites

11 hours ago, bphillips09 said:

That's really just a working title. I was originally thinking something like "LEGO Island v2" but I figured it would get confused with LEGO Island 2.

 

Maybe "LEGO Island HD"?

How about what Valve did with Half-Life when they ported it to the Source engine?

 

LEGO Island: Unity

Link to comment
Share on other sites

11 hours ago, bphillips09 said:

Does anyone have any suggestions for a loading video/animation? -snip-

 

516961-lego-island-2-the-brickster-s-rev

:P

 

Also, I just wanted to stop by and say that this project is awesome! Nice work. :thumbsup:

  • Like 2
Link to comment
Share on other sites

bphillips09
24 minutes ago, Yajmo said:

516961-lego-island-2-the-brickster-s-rev

Also, I just wanted to stop by and say that this project is awesome! Nice work. :thumbsup:

I'd love something like this. I also want to use something original, too.

 

And thanks!

Link to comment
Share on other sites

Would something like this do?

 

infomananim1.gif

 

This is just a rough, thrown-together-in-4-hours animation of what I was thinking of, but with "Hello! Welcome to LEGO Island!"  replaced with trivia.

Link to comment
Share on other sites

bphillips09
2 minutes ago, Wognif said:

This is just a rough, thrown-together-in-4-hours animation of what I was thinking of, but with "Hello! Welcome to LEGO Island!"  replaced with trivia.

I love this. This is great. Could you also possibly make a spinning wheel of bricks or something that moves to show that the game hasn't frozen or is still loading? If not, I could probably do it in Unity.

Link to comment
Share on other sites

1 minute ago, bphillips09 said:

I love this. This is great. Could you also possibly make a spinning wheel of bricks or something that moves to show that the game hasn't frozen or is still loading? If not, I could probably do it in Unity.

I'll see what I can do. It will probably be a gif of a 3D model of a wheel of bricks spinning this time though, I'm not exactly well versed yet at drawing LEGO. (I had to trace the Infomaniac's body from an in-game screenshot, the the facial expressions and shirt however weren't traced.)

Link to comment
Share on other sites

bphillips09
3 minutes ago, Wognif said:

I'll see what I can do. It will probably be a gif of a 3D model of a wheel of bricks spinning this time though, I'm not exactly well versed yet at drawing LEGO. (I had to trace the Infomaniac's body from an in-game screenshot, the the facial expressions and shirt however weren't traced.)

That's good enough for me!

Link to comment
Share on other sites

bphillips09
19 hours ago, Xiron said:

Does this do anything for you? I just moved all water vertices to one point so the water is still existent but not really (you will notice water is sill in the mtl).

I left the materials applied as is, meaning you'll have to change the .mtl to point to the HD ones yourself.

https://www.dropbox.com/s/sfeck8z66nkl9az/IsleNoWaterButStillWater.zip?dl=0

I tried selecting all the materials manually but it said it was still missing a lot even though I imported them. If I sent you the exact obj, mtl, and material assets could you do the same thing but with that?

Link to comment
Share on other sites

Did you remove the sprint function or something?

I'm trying to guess if I've encountered a bug...

 

...basically, I got onto the skateboard and pressed 'Esc' to send me to the Information center, screwed around with Paper Airplanes and sky colour and left the building only to find that I wasn't able to sprint.

Maybe disembarking the skateboard breaks the sprint function?

They were removed, apparently, thanks for clearing that up Xiron.

 

 

 

On a more light hearted note, right now would be an appropriate time for Pepper to break into a rendition of "F*** the Police";

 

LiPUE0X.png

 

Link to comment
Share on other sites

Fluffy Cupcake
39 minutes ago, bphillips09 said:

If I sent you the exact obj, mtl, and material assets could you do the same thing but with that?

Hey man, try editing your post next time instead of triple posting within a short time period (4 hours can be considered short).

Anyway, I can attempt to do it with that, yes.

 

I really love how substantial and relatively quickly these updates are being pushed out!

 

9 minutes ago, Ben24x7 said:

Did you remove the sprint function or something?

It was removed two versions ago, the version where the skateboard was added in. The text stating the controls, however, was never removed.

Link to comment
Share on other sites

bphillips09
3 hours ago, Xiron said:

Hey man, try editing your post next time instead of triple posting within a short time period (4 hours can be considered short).

Anyway, I can attempt to do it with that, yes.

Sorry! and thanks, I'll PM you the files. 

 

3 hours ago, Xiron said:

The text stating the controls, however, was never removed.

Forgot about that. I'll remove that for v0.9

 

3 hours ago, Ben24x7 said:

On a more light hearted note, right now would be an appropriate time for Pepper to break into a rendition of "F*** the Police";

This is the best picture I've ever seen.

 

On 3/21/2016 at 9:52 PM, Wognif said:

I do have a feature request, but its not of very high priority and might be best putting off until the other vehicles are finished.

Make the truck that normally appears in the gas station able to be driven.

Just for you :P

TgLCv0x.png

 

Link to comment
Share on other sites

Fluffy Cupcake

Suggestions for next update:

Move the Pepper model a few inches back from the camera so you aren't looking inside your own head. :P

For the airplane, try adding a decelerator, and maybe make the planes incapable of ground bouncing flawlessly (which would be part of the decelerator). ;P

Any chance of going in the lifeguard tower at the beach, or at the very least able to walk over the base it is on?

 

When I did the "spawn too much" command, I suddenly felt the urge to pick up items with the "e" (use) key like you can in valve/source games. I'm not sure how appropriate it would be to add such a function in this game, but perhaps it would be something to think about.

 

The rideable skateboard needs physics like all other objects. By that I mean if you exit it mid-air currently, it stays mid-air.

 


Question: How do you scroll up in the console? Nevermind, I kept losing the mouse due clicking anywhere. Suggestion (or bug report?) Make it so when the console is open and you click the mouse it won't disappear. Oh, and one more note for console, I think Board should perhaps be called Skateboard, that was actually what I tried first before knowing the name

 

Since the spawn command is in now, I don't think it is really necessary to have the racetrack filled with garbage. Perhaps that can be tidied up in one of the near future updates.

 

 

Edit: Driving that car in third person looks awesome (there should perhaps be a key to toggle between first and third though).

 

On 2016-03-16 at 8:27 PM, bphillips09 said:
  • Fixed object shadows not appearing on the grass

Great, now fix the gravel paths too. ;P

Link to comment
Share on other sites

  • Cyrem changed the title to LEGO Island REDUX
  • lol username featured this topic
  • lol username pinned this topic
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.