I haven't programmed for about 3 days.
I've forgot everything I know about love2d.
fuck
[QUOTE=C:\;33132638]I haven't programmed for about 3 days.
I've forgot everything I know about love2d.
fuck[/QUOTE]
I'm not convinced this is even possible. Love is so easy to use that you can usually guess the function names and be correct.
[QUOTE=Quark:;33121540]I am so confused right now. I got glasses today because of my terrible eyesight, and now the world is HD.[/QUOTE]
I know that feel bro. [img]http://www.facepunch.com/fp/ratings/heart.png[/img]
Gah. I want to support out of source builds, which includes generating .pot files for gettext, but I also want to - GAH. Nevermind, I figured it out. I'll just update the translations included in the source tree when they're actually updated. [b]On my quest to have internationalization![/b]
[QUOTE=Quark:;33121540]I am so confused right now. I got glasses today because of my terrible eyesight, and now the world is HD.
But I'm still a terrible programmer. Do I need to activate something?[/QUOTE]
For the first week or two when I got mine over the summer, the world was [I]uncomfortably[/I] crisp.
[QUOTE=horsedrowner;33132269]I dediced to make my own screenshot uploader tool, out of annoyances with ZScreen and similar.
And just so I actually finish it this time, I made a software requirements specification.
[url]http://dl.dropbox.com/u/764206/Superscrot/Requirements.pdf[/url][/QUOTE]
Bah, I hate this. I don't even know where I'm going to start. Toying around with a class diagram doesn't help, and if I'd just start coding who knows what it ends up like.
[editline].[/editline]
Maybe I'll do it step by step rather than making design documents and class diagrams. Start off with uploading something simple to FTP, then making it configurable. Then try the same with Dropbox, etc.
FUCK! Programming when tired is the worst. I should have just slept and not wasted hours trying to fix a problem that I fixed in 5 minutes after some sleep.
I should start working on my exam game tonight. An R-Type clone.
In c# is there a way to have an array of arrays, or sorts? Like array[0] would point to another array, if that makes sense. I'm trying to work out how to do a sort of chunk system for destructible terrain.
EDIT: Nevermind that. I'm going to have a terrain class and each instance of it can be responsible for a 128x128 slice or something, then I can deactivate and activate them easily.
You could declare a 2D array, like so:
[code]int[,] array = new int[5,5];[/code]
Or if you want an array of arrays, like you said:
[code]int[][] array = new int[5][];
for (int i = 0; i < 5; i++) array[i] = new int[5];[/code]
Another solution would be to create a struct containing two ints (x and y coordinate, for example) and use it as a key in a dictionary object. This way, your data structure does not have a finite size.
[QUOTE=high;33133444]FUCK! Programming when tired is the worst. I should have just slept and not wasted hours trying to fix a problem that I fixed in 5 minutes after some sleep.[/QUOTE]
agreed
and when that fails, go take a shit. whenever i can't fix a bug, either i go sleep or take a shit
[editline]5th November 2011[/editline]
then i fix the bug
Maybe I'm magic then? My mind is always 100%.
[QUOTE=Night-Eagle;33130339]Those two protrusions on the back aren't thrusters. They're reactors. If you overuse one, it will blow out like a clip from an M1 Garand. I'm thinking about moving them somewhere else so people don't get confused, but it makes much more sense to have a vulnerable component placed out of the line of fire. As you can guess, I haven't done much in regards to art just yet.[/QUOTE]
They look like engines, it might be a good idea to redesign them so that they stick upwards, or somewhere which isn't backwards to avoid confusion. Or perhaps make them spherical
So, as it turns out, I have absolutely no idea how to get started on a procedural level generator...
Gotta say though, this is why I love programming, gets you thinking
[QUOTE=Jookia;33133620]Maybe I'm magic then? My mind is always 100%.[/QUOTE]
If you haven't, at least once, woken up and checked the code don't remember writing the previous night and thought "what the hell was I thinking?" then you aren't a true programmer.
It's a pretty vital experience.
i think of the greatest code ever when im on the shitter or in bed
don't you guys love it when there's a bug in your code and you just walk away for a couple of minutes to grab a snack or something, and then all of a sudden the solution (or at least the cause) pops into your head and you rush back to fix it?
sometime i can't sleep because im programming an entire game in my head while on bed
[editline]5th November 2011[/editline]
that's the only time i make good programmer art
[QUOTE=icantread49;33134064]don't you guys love it when there's a bug in your code and you just walk away for a couple of minutes to grab a snack or something, and then all of a sudden the solution (or at least the cause) pops into your head and you rush back to fix it?[/QUOTE]
How about when you run back to fix it, it's gone again?
[QUOTE=Overv;33129600]I extracted the text from memory and found this:
[code]Cannot setup and execute the Ik Rig To Hik Rig RigOp because no Foot Plant Feature could be found in the Rig.[/code]
[/QUOTE]
I don't know if this helps you in the slightest or if I'm just being professor know-it-all and ruining your joke, but 'ik' refers to inverse-kinematics, and 'hik' refers to human-ik. 'Rig' has to do with the skeleton of a model.
The stuff about foot-plant combined with the ik rig stuff means that its probably trying to set up a model's rig with some custom hik work to put feet on the ground based on how the rest of the rig is arranged(usually the position of the pelvis bone), but its missing the 'foot plant feature.'
That might mean it's trying to place feet on something that doesn't have feet, or the feet aren't correctly marked as such, so you might see something like a character's feet going through the ground or standing on thin air.
I'm sorry for over-explaining the joke, animation programming is something I'm researching for the near future and I figured I'd share.
[QUOTE=nmagain;33134076]sometime i can't sleep because im programming an entire game in my head while on bed
[editline]5th November 2011[/editline]
that's the only time i make good programmer art[/QUOTE]
programming insomnia
consult a professional
[QUOTE=GameDev;33134179]programming insomnia
consult a professional[/QUOTE]
oh shit oh fuck am i going to die
[QUOTE=BlkDucky;33133980]If you haven't, at least once, woken up and checked the code don't remember writing the previous night and thought "what the hell was I thinking?" then you aren't a true programmer.
It's a pretty vital experience.[/QUOTE]
I dunno man, I make my code concise and clear most the time, and leave notes. Off the top of my head I don't, but I'm sure it's happened at least once. My point is that I somehow don't get mentally tired, just physically.
[QUOTE=GARRYMODE;33129720]initfs_win32 is just a .toc file, these can be decompiled using this library:
[URL]https://github.com/mitsuhiko/frostbite2-stuff[/URL][/QUOTE]
[QUOTE=Github description]
- CAT File Format CAS Catalogs are very similar. They start with the header[B] "NyanNyanNyanNyan"[/B] and after that they list all the contents of all CAS files with the additional information of position, size and which CAS file they are from:[/QUOTE]
Seems like people at EA have some sense of humor :v:
Im hating all these memory problems i keep getting with C++
Really tempted to just switch to C#/openTK
[QUOTE=Richy19;33134526]Im hating all these memory problems i keep getting with C++
Really tempted to just switch to C#/openTK[/QUOTE]
What are you trying to do?
[QUOTE=Fox-Face;33134471]Seems like people at EA have some sense of humor :v:[/QUOTE]
Haha, I had to check if that was true
[img]http://dl.dropbox.com/u/19560951/nyannyan.png[/img]
Found a few command line switches for BF3:
[code]
cmdLineSwitch("debug", "DebugMode");
cmdLineSwitch("validateData", "ValidateData");
cmdLineSwitch("addToPerforce", "AddToPerforce");
cmdLineSwitch("noconsole", "NoConsole");
cmdLineSwitch("verbose", "Verbose");
cmdLineSwitch("trace", "EnableTracing");
cmdLineSwitch("nohal", "DisableHalDevice");
cmdLineSwitch("trim", "TrimLayout");
cmdLineSwitch("updateIndex", "UpdateIndexOnly");
[/code]
-debug should help a lot. ( Something might actually print :< )
[editline]oh[/editline]
Oh and you can also start your own servers:
[code]
"C:\Games\Battlefield 3\bf3.exe" -server -platform win32
[/code]
There are 3 platforms you can host for:
[code]
win32 - windows.
xenon - xbox360.
ps3 - ps3.
[/code]
[editline]also[/editline]
You can also execute your own Lua in an unrestricted environment using the customConfig argument.
[code]
"C:\Games\Battlefield 3\bf3.exe" -customconfig /user/profile/settings/overrideAutodetect.lua
[/code]
You can run anything unrestricted, as long as the first line of that file is:
[code]
#!/bin/lua
[/code]
[editline]also[/editline]
Another also is that the console appears to be a Lua shell it's self. However it's another restricted environment which is probably set up something like this:
[lua]
executeCode, _ = loadstring("Server.JesusMode = 1")
consoleEnv = setmetatable({},
{
_index = function(t, k)
if k == "print" then print("Unknown command hurdur!") return nil end
if k == "Server.JesusMode" then print("Unknown command hurdur!") return nil end
if k == "Server.OtherCheat" then print("Unknown command hurdur!") return nil end
print("Unknown command hurdur!")
end
_newindex = function(t, k, v)
if k == "print" then print("Unknown command hurdur!") return nil end
if k == "Server.JesusMode" then print("Unknown command hurdur!") return nil end
if k == "Server.OtherCheat" then print("Unknown command hurdur!") return nil end
print("Unknown command hurdur!")
end
})
setfenv(executeCode, consoleEnv)
local success, e = pcall(executeCode)
[/lua]
[QUOTE=likesoursugar;33134790]What are you trying to do?[/QUOTE]
Just trying to make a little game that uses openGL to get a better understanding, but I keep getting heap corruption errors on close.
Because you're calling delete / free() twice.
For all unloads?
[code]
if(data != NULL)
{
delete [] data; // if an array
data = NULL;
}
[/code]
Sorry, you need to Log In to post a reply to this thread.