Jump to content
miningmanna

LRR remake project

Recommended Posts

miningmanna
3 hours ago, Erisdar_Skolir said:

I realize my last post was a little ambiguous, so example time.

https://github.com/ErisdarSkolir/LRR-remake/tree/entity_component_system_prototype

 

Credit to

https://github.com/adamgit/Entity-System-RDBMS-Beta--Java-

for the entity manager code.

 

I partial refactored an ECS system into a fork of your project as it stands on github. I have lws animations working, but I didn't mess around with too much else.

A lot more could be optimize/organized, especially in the loader classes, but this was just a small example of how an ECS system could better organize this project.

Also recognize it isn't a complete ECS example because logic still exists within the components, but that is just due to me not wanting to completely refactor data classes such as the LwsAnimation file. A real implementation would change those files to just be structs (or as close to structs as you can get in java) and move all the logic into factory/loader classes and systems.

 

If you think it is worth looking into I can work on making a prototype engine to demonstrate scripting, better entity creation, multi-threading, etc. that an ECS would allow. Though I am definitely not touching those file formats. They scare me.

 

I'd be happy to see a little prototype, since I am a little bit unsure how to structure the final game. If it works well, I will defenitly add it to the project, and if you are interested, you can work on it. I feel more comfortable in the more "data-near" (loading files, transforming meshes, etc.) parts :)

Share this post


Link to post
Share on other sites
miningmanna

I have a little announcment to make, if anyone is interested, I will be streaming today whilst continuing the project. That would be on twitch, with the same username.

 

I had to make a little bit of a pause, since the size got out of hand.

 

Edit: I have stopped the stream now. I will do this more often.

 

I got the cursor animations loaded, and applied, though not to the cursor, but to the map mesh.

I will fix the cursor tomorrow. probably around the same time

Share this post


Link to post
Share on other sites
miningmanna

So, today i got the Fonts done (the cursors are done aswell).

And I came across a problem.

 

The fonts obviusly have some kind of encoding, and I cant seem to find the right one...

I am currently using Cp850 with an offset of 32, which works for all characters except: ÄäÖöÜü and etc.

large.441504374_FontsandCursors.PNG.5461a4f8f14513c6ceb92ea45bb0b33a.PNGlarge.Encoding.PNG.e5fb73daac150bfb1ca064e7ba2ed53d.PNG

 

Does anyone have an idea, what the encoding could be?

I tried looking at some different ones, but I couldnt find one, that fits perfectly.

 

Elsewise I will convert it to the right encoding myself, but that would be kind of tedius, since there arent many references to look at.

Share this post


Link to post
Share on other sites
miningmanna

Okay, it has been a while, but Im getting back to it.

 

After some thought, I think I tackled too many problems at once.

Not having any structure over the project didnt help either, but I am making some sketching.

 

By looking at the config file, I realised, they must have implemented each screen seperate, since there isnt a uniform way of describing the used assets in the config file

As example:

 

The word wallpaper is only used once in the config file for describing the background image of the result screen. Its never used again, I think i will need to implement each "scene" separately.

 

I am live streaming this. If you feel like helping out or just watching, join in: https://www.twitch.tv/miningmanna

Edit: stream is over

 

Ive got some more structure to the whole project, and I will at least make the main menu during this week, which probably means, that a lot of menus will work. The result screen is special, but most of the menus arent.

 

Stay tuned

 

 

Share this post


Link to post
Share on other sites
Cheeyev

Welcome back! I'm pretty glad that you're still working on this project; I can't wait to see more progress on this.

I'm not somebody who's all that technical, although trying to get a basic structure for it, like you said, is very crucial.

Share this post


Link to post
Share on other sites
miningmanna

The main menu is pretty much done. There are still some small bugs, but those can be fixed.

https://www.youtube.com/watch?v=MHQlyC83g4o

 

Next plan is to make a method of doing the Trigger menu items. For anyone not knowing what that is:

The Trigger items of a menu pretty much are things the menu can do which doesnt equal to navigation in the menu or changing values (like volume sliders)

An example of an trigger item is the "Yes" button when you exit the game. It is supposed to trigger the game to quit. Some others are the "Credits" button, which then starts the credit sequence, etc....

 

So the plan would be to make some basic functions, which can be triggered with a setting in an extra config file.

Before I get into more details about these functions, I added a way of splitting the config file into multiple files. This also means you can add custom values to the config via an external file. The only thing left to do would be to include a comment with this syntax:

;#extern:<PATH_RELATIVE_TO_CONFIG>

This would mean, if youd like you could remove the section "Lego*/Levels" into a different file. This works recursivly if you like to do so, adding more possibilities to structure mods and make the config more readable.

 

Now to the functions:

There would be a set of basic functions. As example:

Game.Quit

Level.Pause

Level.Play

Level.Open(<NAME>)

 

and so on. These can then be used in your custom menus which you can add. In the original game, these seem to be hardcoded.


If you have any suggestions for some functions, I'd like to hear them :)

(Maybe some way of triggering scripts?)

Share this post


Link to post
Share on other sites
Slimy Slug

Splitting the config into multiple files?  I very much like this idea and it would make things a lot easier to handle.  Dividing up the Stats {} and Sounds {} sections into separate config files would make organizing/finding things much less of a pain.

 

Custom Menus?  Already a big step up from the original game.  This opens up possibilities for things such as an actual Options menu in the front end (that is, if you allow for calling the in-level options here).

 

Very excited to see how this progresses; keep up the awesome work!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.