I’ve been doing more UI work, and a bit of datastore and analytics stuff that I can’t really show since it isn’t visual. I hope to finish all the essential work needed for the lobby this week so I can move on to the actual game. Getting to this point is really cool since now I’ve got some of the main framework for the lobby set up, rather than just unscripted GUIs or minor test scripts.
My game is 60k lines of code (80k with whitespace) so I’ve been working on a lua optimizer. Recently I’ve made it break source down into a list of tokens. I need to break that down into an abstract syntax tree, but operator precedence is pretty tricky.
The idea is that:
local x = math.sin(math.pi + 0)
if false then
game:Destroy()
end
print("Hello" .. "World" .. (x * 2))
would condense to:
print("HelloWorld0")
It would keep line numbers and whitespace intact, so errors are still meaningful. Might even add something that lets me do explicit typing via comments, so I can make more assumptions about variables when simplifying expressions. It would be fun to implement operators like ++ and +=, but then it would depend on the parser more than I’d like, plus all my scripts would get warnings
I’ve made math simplifiers before, but nothing that parses lua to get the expressions.
My Shard Seekers RPG game has an optional “Compile” feature that condenses, error-checks and optimizes everything. I do this before publishing the game. Currently the source optimizer just deletes comments without removing new lines, and replaces stuff like “(math.pi/2)” and “math.pi” with numbers using gsub.
As stated, since I’m pretty much chairbound I decided to get to work on something I can give out to people. That ended up being a terrain template for pretty much anything you want. Bases/related for clans, some random terrain thing for games… Anything. Since I know a lot of users dislike making terrain or simply aren’t that good at it I figured I would make this since I’m pretty fast at building.
Took me about one and a half day to make this, not entirely finished as I need to add trees and silly stuff like that before I give it out though.
Oh yeah, and if you want this thing for anything feel free to take it (when it’s finished, of course).
I’ve seen that somewhere before…
I posted screenshots of it while it was work in progress in the Building Helpers Discord server and I have also provided a link to the place in C&G. So probably from one of those if it is my build that you’ve seen before.
these rigs take ages
very much a WIP
Been working on a little banner for myself
And someone told me on twitter to “Take the mime off” because “it scares him”, so I made and replied with this:
Kidding.
Here’s what the scope is actually for. The camo is obviously optional. Personally I think it’s overkill but I know players will pay tons of $$ for it! I also began the UI, as you can see in the bottom-right corner.
I know it’s a day late but Acela is not an MU because it has power cars.
EMUs and DMUs are present in several places around America but they aren’t common, EMUs more common than DMUs. Light rail and commuter trains make up the EMUs while DMUs are a pretty rare breed, the only self-propelled diesel railcars that operate in multiple unit sets are the WES units in Portland Oregon.
Knew i’d get caught out not being an american train fan
The only problem is that the texture looks bad because it’s repetitive, it’s especially noticeable as you look down near the end of the barrel. That in addition to visible seams where the texture cuts off. Perhaps a custom texture would work better (of course, you would have to export and UV map the rifle and bring it back as a MeshPart)
What if the gun changed colors like disco lights.
Sounds like a poor choice due to the possibility of the user having epilepsy.
that is both practical and helpful.
I got bored, made an infinite city generator
¯_(ツ)_/¯
I was kinda of going for a bit more of Blackshades kind of feel.
Can I check it out???
We’re actually exporting the guns one by one to optimize their triangle count and boost performance on wooden potato electric-bike powered PCs. The texture is seamless, the gun itself just has seems currently thanks to the terrible Union count. (34)
All right. Sorry it took so long. had to polish up some of the code.
here’s a link
probably going to be laggy/hard to join