Yeah, in 2-3 years time when this mod hits 1.0 and everything in the feature list is done.... I can see myself playing it for a few days, maybe even weeks, and thinking "OK I'm bored, on to Minecraft Empires 2!"
Yeah, in 2-3 years time when this mod hits 1.0 and everything in the feature list is done.... I can see myself playing it for a few days, maybe even weeks, and thinking "OK I'm bored, on to Minecraft Empires 2!"
Play it? What do you mean "play it"?
I only play with my creations to ensure that the code does what it is supposed to lol (and then some, like... I just made fluid interactions work, then spent 20 minutes making large amounts of each fluid meet for fun).
Rollback Post to RevisionRollBack
I believe in the Invisible Pink Unicorn, bless her Invisible Pinkness.
By play it I mean "be a virtual dictator and satisfy my deepest darkest fantasies of tyranny and conquest", pretty much the only reason I play any game
The hardest part with that was building the data on-demand into an array; when it's more pure-Java knowledge than Minecraft GUI code with that. General idea of how I think it should be done is to have a one or more array's/lists which correspond to each page number and page line (respectively), and your page next/previous buttons simply change the page number which updates the array/list index of your draw* call data.
Code for the log is here, but do keep in mind that I build the data dynamically and render graphics too - so it's a bit more advanced I also use two other classes to help with the formatting logic, NiceText to draw the graphical "Day 3" or whatever titles and also to calculate if it can fit on the page, where to put line breaks, etc... and EventLogBuilder to parse the event string content (with primary formatting, i.e. before NiceText does the layout/alignment logic on them). Both the other classes are in the same package as that GuiLog.java (same folder).
Future GUI's will not use pagination at all but use glClip to make scrolling containers.
I can't thank you enough man! I can't wait to look closer at that code and finally figure out how to make a book XD thanks SOOOO much!!!
I can't thank you enough man! I can't wait to look closer at that code and finally figure out how to make a book XD thanks SOOOO much!!!
No problem and good luck, just remember if you see "NiceText" - that's where the magic happens (building my "2D ArrayList") and if you see "EventLogBuilder", that can mostly be ignored - just some minor formatting on my strings for the content.
Took me a while to get the word-wrap, offset calculations and page predicion (overflow) right so I'm happy to put it out there to help others.
Just eclipse, all the code is there so it should work with IntelliJ too I'd imagine. You'll have to "gradew eclipse" before the src is usable, I don't want to push unneccessary stuff to the repo.
So today and yesterday I finished the Campfire. This was my first "machine" so it took me a while to get it right.
It doesn't have a GUI, just right-click while holding any cookable food and it'll appear on the spit grill. After 60 seconds (default), it's ready to be taken off with another right-click. The campfire will burn out and destroy itself after 5 minutes, but it's very cheap to make anyway. It can hold four items maximum, as seen above.
Next, on to the NPC code and the first, essential character who'll become your loyal number two throughout your Empire (who, I've decided, will turn up when you light a campfire for the first time to give you your first essential task - hunting).
Dude that's awesome! I love the dedication! I've only been following this post for 2 days and already you've answered a question about modding and posted an update about your mod!
that is awesome! would be nice with a feature to keep adding wood to it to make it last longer though just because.. (unless that is already implemented)
Thanks @ everyone else, Xuluf is one of many who have indirectly helped with the project.
Good idea! Brushwood is common, semi-renewable (comes from breaking/decaying leaves) and that's not hard to do at all . I was actually thinking about making it so the campfire won't destroy itself when it goes out - but just "stop burning". That'd work well with this idea.
The only issue I can think of is how to indicate it. Maybe just the size of the fire? And the light level/brightness can change as the flame gets smaller too
Thanks @ everyone else, Xuluf is one of many who have indirectly helped with the project.
Good idea! Brushwood is common, semi-renewable (comes from breaking/decaying leaves) and that's not hard to do at all . I was actually thinking about making it so the campfire won't destroy itself when it goes out - but just "stop burning". That'd work well with this idea.
The only issue I can think of is how to indicate it. Maybe just the size of the fire? And the light level/brightness can change as the flame gets smaller too
No time like 3AM for MC Forums
I'd vote smaller fire and lower light level. You have 16 metadata states, that's 1 for each light level/burning stage. You could also use the metadata to lower the height of the rendered triangle thingies if you wanted to be really fancy.
One thing to note is that fires can still burn when they are reduced to embers, so perhaps a good ~final and much clearer~ warning would be to have the fire become embers for a short period, during which time you have the chance to put more firewood into it if you want.
Rollback Post to RevisionRollBack
I believe in the Invisible Pink Unicorn, bless her Invisible Pinkness.
Yeah that's a good way to do it. Right now I have metadata of 1 = burning but not cooking, and 2 = burning AND cooking, but really that's not necessary. 1 will have to be minumum otherwise I'll need two block renderers (0 is no fire at all), so 1 could be "embering" and 2-15 could be the flame levels. And each one could be, I dunno, 2 minutes each or something. Right now the fire only lasts for 5 minutes (real time), which isn't very long.
But then I have to do even MORE Dodgy-4000 textures, waaaaah! Will create an issue with all this though for future improvement. That way someone else might volunteer these enhancements *wink @ everyone*
EDIT: Issue added. I'll take a look at it later, won't be too hard but I want to move on to something different for the moment
I like Socialite; but the titles will probably change as they advance in the skills/ages though - the "Thinker" is also the "Do-er" in a lot of ways (which an intellectual is not heh).
No kidding. I actually like Modding better than Minecrafting, as does KingLemming of Thermal Expansion.
I third (fourth?) this by adding myself to the list.
I believe in the Invisible Pink Unicorn, bless her Invisible Pinkness.
Play it? What do you mean "play it"?
I only play with my creations to ensure that the code does what it is supposed to lol (and then some, like... I just made fluid interactions work, then spent 20 minutes making large amounts of each fluid meet for fun).
I believe in the Invisible Pink Unicorn, bless her Invisible Pinkness.
I can't thank you enough man! I can't wait to look closer at that code and finally figure out how to make a book XD thanks SOOOO much!!!
No problem and good luck, just remember if you see "NiceText" - that's where the magic happens (building my "2D ArrayList") and if you see "EventLogBuilder", that can mostly be ignored - just some minor formatting on my strings for the content.
Took me a while to get the word-wrap, offset calculations and page predicion (overflow) right so I'm happy to put it out there to help others.
Ikr, it's so much fun (my lake drainer is "make a hole in the lake and watch the water drain out of the world", but same difference)
I believe in the Invisible Pink Unicorn, bless her Invisible Pinkness.
It doesn't have a GUI, just right-click while holding any cookable food and it'll appear on the spit grill. After 60 seconds (default), it's ready to be taken off with another right-click. The campfire will burn out and destroy itself after 5 minutes, but it's very cheap to make anyway. It can hold four items maximum, as seen above.
Next, on to the NPC code and the first, essential character who'll become your loyal number two throughout your Empire (who, I've decided, will turn up when you light a campfire for the first time to give you your first essential task - hunting).
Art by me: MrPancakeWolfie@DeviantArt
Good idea! Brushwood is common, semi-renewable (comes from breaking/decaying leaves) and that's not hard to do at all . I was actually thinking about making it so the campfire won't destroy itself when it goes out - but just "stop burning". That'd work well with this idea.
The only issue I can think of is how to indicate it. Maybe just the size of the fire? And the light level/brightness can change as the flame gets smaller too
No time like 3AM for MC Forums
I'd vote smaller fire and lower light level. You have 16 metadata states, that's 1 for each light level/burning stage. You could also use the metadata to lower the height of the rendered triangle thingies if you wanted to be really fancy.
One thing to note is that fires can still burn when they are reduced to embers, so perhaps a good ~final and much clearer~ warning would be to have the fire become embers for a short period, during which time you have the chance to put more firewood into it if you want.
I believe in the Invisible Pink Unicorn, bless her Invisible Pinkness.
Yeah that's a good way to do it. Right now I have metadata of 1 = burning but not cooking, and 2 = burning AND cooking, but really that's not necessary. 1 will have to be minumum otherwise I'll need two block renderers (0 is no fire at all), so 1 could be "embering" and 2-15 could be the flame levels. And each one could be, I dunno, 2 minutes each or something. Right now the fire only lasts for 5 minutes (real time), which isn't very long.
But then I have to do even MORE Dodgy-4000 textures, waaaaah! Will create an issue with all this though for future improvement. That way someone else might volunteer these enhancements *wink @ everyone*
EDIT: Issue added. I'll take a look at it later, won't be too hard but I want to move on to something different for the moment
The Talker = Socialite?
What will that do exactly? It's a light source so I kind of want it to be bright.
I like Socialite; but the titles will probably change as they advance in the skills/ages though - the "Thinker" is also the "Do-er" in a lot of ways (which an intellectual is not heh).