What Are You Working On? Mesh Edition - August 2012
650 replies, posted
uh I do that all the time... Usually in some form of vector projection or other vector maths.
It's a good thing to use the stuff you've learned in school/ university. That's what they're for.
I'm still trying to get client side working, since it's really messing with productivity. Since I added the 'Byte Stream' module to the Minecraft addon I'm working on, I can't use Garry's Mod 12 to test it, and also the renaming of 'NewMesh()' to 'Mesh()'. Of course, I could add legacy support for those too, but then again none of it will matter in September when the update goes live.
Anyways, the LoZ addon is working under Garry's Mod 12. I've spent hours fixing the client side, since somehow that was the most broken and I didn't have to fix the server side. The only exception is getting songs to play on the server side. Damn calling functions too early... Good thing is that Notepad++ can easily rename shit, so it wasn't a hassle to mass rename songs to work. The bad thing is, some stuff needs optimization, such as the 'Goron Lullaby', since that use(d/s) a shit way to carry it out. It's disabled for the mean time.
I also noticed that in Garry's Mod 12, folders named '.' and '..' are returned in 'file.FindInLua()', but something like this should remove it:
[lua]
local TABLE = file.FindInLua( Directory );
for i = 1, #TABLE, 1 do
if TABLE[i] == "." then
table.remove( TABLE, i ); table.remove( TABLE, i );
return TABLE;
elseif TABLE[i] == ".." then
table.remove( TABLE, i - 1); table.remove( TABLE, i - 1);
return TABLE;
end
end
[/lua]
It just finds where those two 'folders' are and removes those two indices from the table. If for some reason '..' comes before '.', then it'll do whatever accordingly. The reason I didn't have it remove index 1 is, when calling 'file.FindInLua("*")', those two aren't first.
[editline]8.12.2012[/editline]
[QUOTE=Spencer Sharkey;37190852]
Also I finally figured out how to find the angle to point the RTS camera at to keep it centered!
I never knew I would be able to use anything taught by my calculus teacher in real life.
[/QUOTE]
I think my brain divided by zero... Maybe it's because I haven't taken it yet (that sentence took forever to not make it sound awkward).
[IMG]http://i.imgur.com/055PO.png[/IMG]
Almost original.... Almost.
[QUOTE=Megalan;37185093][img_thumb]https://dl.dropbox.com/u/1285798/LANS.png[/img_thumb]
Started working on LAN hacking stuff from uplink. Currently done: Basic LAN rendering, Simple LAN (Level 0) generator[/QUOTE]
Online Uplink, go go go.
[QUOTE=CGNick;37193637][IMG]http://i.imgur.com/055PO.png[/IMG]
Almost original.... Almost.[/QUOTE]
That's lovely!
[QUOTE=garry;37196071]That's lovely![/QUOTE]
Why thank you very much, here is a bonus screen:
[IMG]http://cloud.steampowered.com/ugc/541806785141329611/B8BE306D21B5E947AAC57D4E97848715012FD688/[/IMG]
That looks damn nice, does it support different color schemes?
[QUOTE=CGNick;37196168]Why thank you very much, here is a bonus screen:
-Beautiful Image-[/QUOTE]
I usually don't like gradients, but yours are just so well blended it looks absolutely amazing. Great job!
[QUOTE=Banana Lord.;37196520]That looks damn nice, does it support different color schemes?[/QUOTE]
I actually tried yellow and blue to go with it. Yellow was a bad choice and blue was pretty ok but I just couldn't get it right, however I think red looks nice.
[QUOTE=CGNick;37196168]Why thank you very much, here is a bonus screen:
[IMG]http://cloud.steampowered.com/ugc/541806785141329611/B8BE306D21B5E947AAC57D4E97848715012FD688/[/IMG][/QUOTE]
Expect EA's lawyers :v:
Aren't the squad names in bc2 based on nato radio alphabet?
[QUOTE=Aide;37199834]Aren't the squad names in bc2 based on nato radio alphabet?[/QUOTE]
The phonetic alphabet, yeah.
[QUOTE=Aide;37199834]Aren't the squad names in bc2 based on nato radio alphabet?[/QUOTE]
Silence you. I'm using Phoenician cause it looks fancier...
And avoiding lawyers.
[QUOTE=CGNick;37199976]And avoiding lawyers.[/QUOTE]
surely they'll look right past the entire layout now that you changed the lettering!!
[QUOTE=CGNick;37196168][/QUOTE]
That font is gorgeous [i]I wanna stick my genitalia inside of it[/i].
What it called?
[QUOTE=Aide;37200724]That font is gorgeous [i]I wanna stick my genitalia inside of it[/i].
What it called?[/QUOTE]
[URL="http://www.dafont.com/aero-matics.font"]http://www.dafont.com/aero-matics.font[/URL]
Aero Matics Display
Go and uh... do your thing...
[img]http://cloud-2.steampowered.com/ugc/560949710479013113/F1DA6E5E79297BEEBA05A46FB590A40ED545D767/1024x576.resizedimage[/img]
Modified RPG, fires hundreds of missiles, all follow your cursor.
[QUOTE=TylerB;37206916][img]http://cloud-2.steampowered.com/ugc/560949710479013113/F1DA6E5E79297BEEBA05A46FB590A40ED545D767/1024x576.resizedimage[/img]
Modified RPG, [B]fires hundreds of missiles[/B], all follow your cursor.[/QUOTE]
top right corner
i wonder why...
[QUOTE=TylerB;37206916][img]http://cloud-2.steampowered.com/ugc/560949710479013113/F1DA6E5E79297BEEBA05A46FB590A40ED545D767/1024x576.resizedimage[/img]
Modified RPG, fires hundreds of missiles, all follow your cursor.[/QUOTE]
I see my No Build Zone addon. Awesome. :V
[thumb]http://puu.sh/URoO[/thumb]
Fixed some bugs. Now what I need to do is switch over to MySQL saving and convert the gamemode from using datastream to the new net. If anyone wants to help me add me on steam.
[QUOTE=_Undefined;37209022]I see my No Build Zone addon. Awesome. :V[/QUOTE]
Yes, you do, slightly modified, though.
I made it so it applies force to the props and pushes them off of spawn.
Also, I modified the text slightly.
[img]https://dl.dropbox.com/u/16737046/fp/server.png[/img]
[QUOTE=_Undefined;37209022]I see my No Build Zone addon. Awesome. :V[/QUOTE]
Where can I get such an addon?
[QUOTE=a1steaksa;37212204]Where can I get such an addon?[/QUOTE]
[url]http://www.facepunch.com/showthread.php?t=1170113&p=35147766&viewfull=1#post35147766[/url]
Started fiddling around with my code again, absent-mindedly changed
[lua]
local function sortGangFunc(a, b)
-- Make sure groups are always above gangs
if (a.IsGroup) then
if (b.IsGroup) then
-- If they're both groups, sort normally.
return sortTeamFunc(a, b);
else
-- Otherwise, bump A above B.
return true;
end
elseif (b.IsGroup) then
-- Reverse situation: B is a group but A isn't. Knock A below B
return false;
else
-- Neither is a group, sort normally.
return sortTeamFunc(a, b);
end
end
[/lua]
to
[lua]
local function sortGangFunc(a, b)
return a.IsGroup and (not b.IsGroup or sortTeamFunc(a, b)) or (not b.IsGroup and sortTeamFunc(a, b));
end
[/lua]
I think there's something inside me that lothes readable code.
Bad code? Ha! I've seen worse code. How is that bad code? You indent it properly, you comment it and you're consistent in your style. I have seen worse, way worse.
Just because there is worse code available doesn't make that code not bad :v:
I've turned 11 lines of clear code into an obscene short circuit evaluation that relies on trickery to work.
It's not terrible no, but it's not good either.
[QUOTE=Lexic;37213799]Just because there is worse code available doesn't make that code not bad :v:
I've turned 11 lines of clear code into an obscene short circuit evaluation that relies on trickery to work.
It's not terrible no, but it's not good either.[/QUOTE]
Most if not all the sorting functions I've written look like that too. I think it has a sense of clean in it because it's more efficient. The latter is just boolean calculus, the former is a whole bunch of if statements. Really, it isn't that bad as you say it is. I quite like it.
[QUOTE=Knoxed;37210056][thumb]http://puu.sh/URoO[/thumb]
Fixed some bugs. Now what I need to do is switch over to MySQL saving and convert the gamemode from using datastream to the new net. If anyone wants to help me add me on steam.[/QUOTE]
Stop fixing bad code. Why do people do that...
Just make your own, but do it right.
[QUOTE=Spencer Sharkey;37216855]Stop fixing bad code. Why do people do that...
Just make your own, but do it right.[/QUOTE]
I'm not as good as you.
[QUOTE=Knoxed;37217570]I'm not as good as you.[/QUOTE]
You don't need 1337 lua skills to make css minigames work in gmod (without fancy scoreboard, chatbox and other stuff ofc)
Sorry, you need to Log In to post a reply to this thread.