Tried B-splines
[img]http://dl.dropbox.com/u/4838268/ZScreen/2012-09/Screenshot-2012-09-03_17.48.59.png[/img]
Am I doing it right?
[QUOTE=Drakehawke;37501474]I love you for using pictures and not the actual videos, I always fear the first page of WAYWO because of how long it takes to load with all the videos.[/QUOTE]
If you have Google Chrome, you can make flash click-to-play in the settings.
Web pages load so much faster now
[QUOTE=Dymium;37524332]If you have Google Chrome, you can make flash click-to-play in the settings.
Web pages load so much faster now[/QUOTE]
They should make a Firefox addon for that.
[img]http://dl.dropbox.com/u/4838268/ZScreen/2012-09/Screenshot-2012-09-03_22.31.34.png[/img]
Have a sphere thingy
Its made out of cubic B-splines
I'm extra proud of it because I simplified all the matrix math myself
[QUOTE=Tobba;37527106][img]http://dl.dropbox.com/u/4838268/ZScreen/2012-09/Screenshot-2012-09-03_22.31.34.png[/img]
Have a sphere thingy
Its made out of cubic B-splines
I'm extra proud of it because I simplified all the matrix math myself[/QUOTE]
By eye, it doesn't look very circular, it sticks out towards the points in my opinion, but so far so good.
Did some house keeping with my code. It looked horrendous, with functions just slammed in there, and Garry's Mod 12 legacy support everywhere. Just made me want to throw my laptop out the window. So, I cleaned it up, added iterators (right term again?) to loop through modules and plugins to load, and added a check to see if they were previously loaded (I did that before and didn't see a need for some reason). Just feels great to have stuff clean and working.
On top of that, I decided to make my Minecraft addon a gamemode. I was planning on making it one anyways, since it would be better off that way in case one doesn't want to disable the addon. Renamed it from "World Handler" to "WorldScape". I don't know, "Scape" seems a lot nicer than "Handler", since with "Scape", your making something. With "Handler", you're handling something. "Craft" on the other hand, means making.
[i][b]tl;dr[/b][/i] I cleaned my code, removed legacy support, made plugin loaded automated and added preventions in case of an infinite loading plugin (which is happening for my Workshop addons, but not addons loaded through the legacy way). I made "World Handler" to a gamemode, and also renamed it to "WorldScape", since "Scape" is better than "Handler".
[quote][img]http://cloud.steampowered.com/ugc/540684781243185990/C07F4A6DF2DD633476DE3C4D8D8D7F47FB94C89C/[/img][/quote]
[b]Just got some screenshots of interesting terrain.[/b] This isn't going to stay, only until I actually get some terrain generators working, which will be a long while.
[Question]
It doesn't really matter if the sounds are under [U]"/sound/"[/U] instead of [U]"/gamemode/worldscape/content/sound/"[/U], does it? Workshopper doesn't like uploading files that are under the content folder, so I made it addon format and put the gamemode under "/gamemode/" just to get it to upload.
I added some control point thingies
this is pretty funky
[img]http://dl.dropbox.com/u/4838268/ZScreen/2012-09/Screenshot-2012-09-03_23.06.03.png[/img]
[img]http://puu.sh/11L1E[/img]
Hammered down text wrapping.
Also found out that DLabels are [B]8 pixels wider[/B] than the text they contain. (when sized to contents)
Here is the code:
[lua]local SetFont, GetTextSize, sub, format, insert, concat, floor = surface.SetFont, surface.GetTextSize, string.sub, string.format, table.insert, table.concat, math.floor
PANEL.WrapTextToWidth = function(self, wid)
local txt = self:GetText()
SetFont(self:GetFont())
local lines = { }
local i = 1
local len = #txt
while i < len do
local a = find(txt, "\n", i, true)
if a then
insert(lines, sub(txt, i, a - 1))
else
insert(lines, sub(txt, i, len))
end
i = (a or len) + 1
end
i = 1
while i <= #lines do
local line = lines[i]
local lw = GetTextSize(line)
len = #line
if lw > wid then
local ind = floor(wid * len / lw)
local newW = GetTextSize(sub(line, 1, ind))
if newW < wid then
ind = ind + 1
for pos = ind, len, 1 do
newW = GetTextSize(sub(line, 1, pos))
if newW > wid then
lines[i] = sub(line, 1, pos - 1)
insert(lines, i + 1, sub(line, pos, len))
break
end
end
else
ind = ind - 1
for pos = ind, 1, -1 do
txt = sub(line, 1, pos)
newW = GetTextSize(txt)
if newW < wid then
lines[i] = txt
insert(lines, i + 1, sub(line, pos + 1, len))
break
end
end
end
end
i = i + 1
end
self:SetText(concat(lines, "\n"))
end[/lua]
[b]It was initially written in Moonscript. This is the compiled Lua code. Do not complain about the formatting.[/b]
Lemme explain how this works:
First, it splits the text in lines and adds them in a table.
Then, fore each line, checks if it's wider than the given width.
If it is, it divides the given width by the line's width, multiplies the result by the length of the string and floors the result.
If the width of the line up to that point is smaller than the given width, it starts going forward 1 character at a time until it's larger than the given, sets the line to the string before that and inserts the rest in a new line.
If it's smaller, it starts going backward 1 character at a time until the width is smaller than the given. Sets the line to the current string and inserts the rest in the next line.
The resulted line list is then concatenated together, separated by a newline and the panel's text is set to the new one.
This is, as of my current knowledge, the fastest way of wrapping text with as little resources as possible.
If there is any faster way, [B]please[/B] share it.
Cubic bezier splines
[img]http://dl.dropbox.com/u/4838268/ZScreen/2012-09/Screenshot-2012-09-03_23.49.46.png[/img]
[editline]4th September 2012[/editline]
[img]http://dl.dropbox.com/u/4838268/ZScreen/2012-09/Screenshot-2012-09-04_00.26.56.png[/img]
Angles
[quote][img]http://filesmelt.com/dl/tilez.PNG[/img][/quote]
More Space Station 13 flooring, now with twice the lag. I guess Xerasin was right about there being AIDS in my code. Time to optimize.
[QUOTE=Disseminate;37529936][vid]https://dl.dropbox.com/u/55263305/rp_vein_mercy_b1%202012-9-3%2020-13-27.webm[/vid]
chairs : - )[/QUOTE]
you must be an overachiever.
My GCC entry is now at an almost playable standard! :D
Watch the video, enjoy watching me miss all the power-ups and fail miserably
[media]http://www.youtube.com/watch?v=qdSF-zTmg4o[/media]
Ignore the crackling on every note, that's the recording again, I'm thinking the "gm_video" recorder hates how I'm playing sounds
Still a lot of work do do, but it's sort-of playable now, as long as you're in single-player
Anyone who didn't see my post in the gcc thread, it reads notes from a midi file, entirely lua-based (No modules)
The fact the notes are now visible on-screen makes it more obvious I've not got the full range of 128 notes yet
Currently it's only working single-player, but I plan to make it multi-player competitive gamemode (Hence the dynamic note colours and blue "This is you" glow)
The "Score" you see on-screen will just be the tie breaker, last man standing or player with most health will win
It's pretty difficult just now, but imagine what it was like when the missiles could only affect a single note...
Massively improved the track generation for melonsurf, I also found a way to generate notes, I just need to draw them now.
[img]http://puu.sh/11V9O[/img]
[QUOTE=my_hat_stinks;37531740]My GCC entry is now at an almost playable standard! :D
Watch the video, enjoy watching me miss all the power-ups and fail miserably
[media]http://www.youtube.com/watch?v=qdSF-zTmg4o[/media]
Ignore the crackling on every note, that's the recording again, I'm thinking the "gm_video" recorder hates how I'm playing sounds
Still a lot of work do do, but it's sort-of playable now, as long as you're in single-player
Anyone who didn't see my post in the gcc thread, it reads notes from a midi file, entirely lua-based (No modules)
The fact the notes are now visible on-screen makes it more obvious I've not got the full range of 128 notes yet
Currently it's only working single-player, but I plan to make it multi-player competitive gamemode (Hence the dynamic note colours and blue "This is you" glow)
The "Score" you see on-screen will just be the tie breaker, last man standing or player with most health will win
It's pretty difficult just now, but imagine what it was like when the missiles could only affect a single note...[/QUOTE]
I think it'd be more fun if the missiles/notes were faster tbh.
[QUOTE=Spencer Sharkey;37537116]I think it'd be more fun if the missiles/notes were faster tbh.[/QUOTE]
and if it would use midis from doom :v:
I'm making a Duck Hunt gamemode for GM13, much like that from Halo 3 custom games :D No screenies yet - to early on
[IMG]http://i.ytimg.com/vi/MVBvVtO4mko/0.jpg[/IMG]
Doesn't seem like much, but I'm a mahusive noob when it comes to any coding language and committing to these kinda projects :L
If your starting lua for first time then don't over commit to a project.
[QUOTE=Aide;37537688]If your starting lua for first time then don't over commit to a project.[/QUOTE]
Thanks for the advice, but I'm yet to get to the stage of over committing, usually I don't get to that stage, the usual process is: Start Lua or any coding project, hit difficulty, consult forum, if forum help fails, give up, if success repeat steps 2-5 Haha, I'm feeling confident with this one, on the back of successfully adding teams and menus and team models to[URL="http://steamcommunity.com/sharedfiles/filedetails/?id=83956585&searchtext="] this [/URL]ffa game
I defo need some flowchart software
Bro my ideas are coming into fruition! Remember to add the sleep/sit option.
Notes
[img]http://puu.sh/122fv[/img]
have my music
all of it
[QUOTE=Drakehawke;37539936]Notes
[img]http://puu.sh/122fv[/img][/QUOTE]
wait i gave you the idea for menlonsurf wtf man
[QUOTE=Banana Lord.;37541079]wait i gave you the idea for menlonsurf wtf man[/QUOTE]
Demand royalties. DEMAND.
[video=youtube;exycoYcq3kM]http://www.youtube.com/watch?v=exycoYcq3kM[/video]
I fixed the view being dodgy, it's now at the correct angle/position to the track & melon regardless of whether it's on a sharp slope or not. I also made the melon spin slower/faster depending on how `fast` the songs going at that point.
I also ditched Audiosurfs complicated scoring system and just went for a simple score/multiplier for each correct hit, every time you hit a grey your score is halved and multiplier reset, should make multiplayer interesting.
In terms of where I'd like to go with this, I want to get colours sorted out, (the overall colour of the track/non-grey blocks should change with the music - warm colours for fast bits and cold colours for slow bits), and then I'd like to do some sort of powerup system to make it a bit more interesting. I also need to put some proper structure into it, currently it's all just one clientside file and incredibly messy, and I need to sort out a multiplayer aspect.
That can all wait for now though, I can't work properly when I'm not under pressure so I'll leave it alone until a few days before the deadline.
Oh and sorry for using the same song, I'll use a different one next time.
GCC Winner 2012
Actually I did notice your FPS seems a bit low, or it's just the fact that every height change it jumps to the correct angle that makes it seem choppy.
Lerp the angle as it changes, it'll look much smoother.
[QUOTE=Spencer Sharkey;37537116]I think it'd be more fun if the missiles/notes were faster tbh.[/QUOTE]
I tried that, but without working ENT:Touch and StartTouch hooks, it's not possible
The current system involves the notes and missiles constantly checking their surroundings to see if there's anything they should collide with, if they're moving too fast the missiles seem to pass through notes and power-ups
Basically, until [url="http://www.facepunch.com/showthread.php?t=1209654"]This[/url] is fixed, it can't go faster
[QUOTE=comet1337;37537538]and if it would use midis from doom :v:[/QUOTE]
Once I've got the lua midi reader done, it should be completely dynamic ;)
Still struggling with timings, though, and it seems to be skipping a lot of notes from my doom midis :P
[QUOTE=Drakehawke;37544889][video=youtube;exycoYcq3kM]http://www.youtube.com/watch?v=exycoYcq3kM[/video]trendy dub step[/QUOTE] The fuck is that guy saying in that song?
On a side note though, that's pretty sweet.
the watermelon must be gmods most iconic model
along with with the traffic cone
also i want to record a video but i dont know how should i, so can anyone recommend anything?
preferably something that doesnt eat my FPS to the ground
[QUOTE=comet1337;37549038]the watermelon must gmods most iconic model
along with with the traffic cone
also i want to record a video but i dont know how should i, so can anyone recommend anything?
preferably something that doesnt eat my FPS to the ground[/QUOTE]
Use gm_video if you just want a quick recording, if you want a proper video use gm_demo and then render it as a video, takes ages though.
Sorry, you need to Log In to post a reply to this thread.