[QUOTE=gilly_54;18423473]I saw this on the SFML forums a while ago...have you uploaded it anywhere for people to try out?
If you haven't, I'd appreciate it if you do upload it (preferably with source code if you can/want)[/QUOTE]
[url]http://www.mediafire.com/file/dnmddjnjkmn/JallensRollerCoasterSimulator.7z[/url]
Warning: Physics are extremely buggy. I didn't spend very long on it since it was just a computing project. It wasn't really a project of choice, I'd rather of made a game.
Started working on some breakout game because i'm bored.
[img]http://i48.tinypic.com/oixgsx.png[/img]
Not in VB, but in C#.
For some reason the blocks on the top look blurred.
[QUOTE=ddrl46;18424143]Started working on some breakout game because i'm bored.
[hugescreenshot]
Not in VB, but in C#.
For some reason the blocks on the top look blurred.[/QUOTE]
The top and bottom edges aren't blurred, the left and right edges are blurred.
Just zoomed in on it, the edges are sortof double/blurred.
[QUOTE=Robber;18424277]The top and bottom edges aren't blurred, the left and right edges are blurred.[/QUOTE]
That's not a "hugescreenshot".
On topic, that looks pretty cool.
That was just 5 minutes of work, ill continue on it tommorow.
[QUOTE=Ibutsu;18424658]That's not a "hugescreenshot".
On topic, that looks pretty cool.[/QUOTE]
Too huge to be posted twice.
Just an FYI for anyone using the UDK, Beta 2 has been released, with the following:
Shader compiler no longer crashes when the log is not writable.
Game/editor will run without having to first check for existing script files.
Windows XP: Emissive lights causing purple lighting have been fixed.
Windows 7: Added new SpeedTree binaries to address OS-specific issue.
Added check to confirm GPU meets minimum requirements.
Implemented fix for some SpeedTree trees causing crashes.
Added fix for invalid characters being allowed in journal files causing database corruption.
Incorporated fix for making a game in non-English and then running it on another non-English machine.
If a prerequisite fails to install, the install will still continue and warn at the end.
Enhanced the check for a valid install path.
If the installer is skipped, the EULA comes up once.
Fixed CZE install not finding the EULA.
Fixed problem if temp install folders were deleted between install and uninstall.
Fixed problem if maps were named in non-ASCII characters.
I'm currently working on a program for my thesis on [url=http://en.wikipedia.org/wiki/Continued_fractions]continued fractions[/url]. Not much to show screenshot-wise, though. Just tons of numerical data.
I might make some visualiser for my data, just to make it more interesting.
[code]def setExpansion(array,c)
@periodic = false
@expansion = []
x = [@a]
y = [@b]
z = [@r]
i = 0 #iterator
m = 0 #when to start making best choice of a_i's
m = array.length if array #if forcing values, start making best choice of a_i's afterwards
f = [[@a, @b, @r]] #stores x,y,z values to determine periodicity
until @periodic || (x[i] == 0 && y[i] == 0) || i > c
if i < m
@expansion[i] = array[i]
else
@expansion[i] = ((x[i] + y[i] * Math.sqrt(d.to_f)) / z[i]).to_i
end
x[i + 1] = n * z[i] * (@expansion[i] * z[i] - x[i])
y[i + 1] = n * z[i] * y[i]
z[i + 1] = d * y[i] ** 2 - (x[i] - @expansion[i] * z[i]) ** 2
i = i + 1
s = gcd(gcd(x[i], y[i]), z[i])
x[i], y[i], z[i] = x[i] / s, y[i] / s, z[i] / s if s != 0
@periodic = f.index([x[i], y[i], z[i]]) if i >= m
f[i] = [x[i], y[i], z[i]]
end
end[/code]
But I've never used any graphics libraries for ruby so it could take a bit.
Holy shit, triple pointer.
[cpp]
struct Tags {
//Pointer to an array of strings.
char*** tags;
};
static const char* id3tags[] = {
"TIT2",
"TALB",
"TPE1",
"TCON"
};
//ID3 v2.2 tags.
//They only use 3 chars instead of 4.
static const char* id3_v2_2_tags[] = {
"TT2",
"TAL",
"TP1",
"TCO"
}
static const char* oggtags[] = {
"TITLE",
"ALBUM",
"ALBUM ARTIST",
"GENRE"
};
[/cpp]
I'm going to use that triple pointer to point at one of those arrays of strings, so I can just say tags->tags[0] or something, so I don't have to do:
if(id3v3)
Use id3tags[]
else if(id3v2)
Use id3_v2_2_tags[];
else if(ogg)
Use oggtags[]
[editline]08:00PM[/editline]
Actually, I'm probably gonna change those arrays to structs. It'd make more sense since I wouldn't have to do id3tags[0] to get the Title tag. I could just do id3tags->title;
Hello, I've never used that language before.
What does the * and *** mean?
I've been gone since page six (vacation), anyone care to fill me in? :buddy:
[QUOTE=cas97;18430291]Hello, I've never used that language before.
What does the * and *** mean?[/QUOTE]
Pointer. And pointer to pointer to pointer.
[QUOTE=ryandaniels;18430429]I've been gone since page six (vacation), anyone care to fill me in? :buddy:[/QUOTE]
Sure. Just click on the little '6' on the upper and lower right corner of the screen and then read all the stuff that we wrote there and on subsequent pages. The interface has been designed to do this more simply than ever before!
[QUOTE=ryandaniels;18430429]I've been gone since page six (vacation), anyone care to fill me in? :buddy:[/QUOTE]
[IMG]http://javascriptcamp.com/wp-content/uploads/2009/domslidespresentation/media/mac_vs_pc_2.png[/IMG]
[QUOTE=cas97;18430291]Hello, I've never used that language before.
What does the * and *** mean?[/QUOTE]
It's C. And like nullsquared said, * means pointer. Putting *s together means pointer to a pointer.
-snip-
:v:
[QUOTE=PvtCupcakes;18431265]It's C. And like nullsquared said, * means pointer. Putting *s together means pointer to a pointer.[/QUOTE]
It's more so induced brainfucking. :v:
Also, a pointer is a memory address. It literally points to a value/code/data in RAM.
Just got done spending 3 hours writing a Java program for my CS class.
I went way overboard. It was supposed to be some simple console app that asked for all the input. Instead I'm forcing command line arguments, and storing all the good stuff in an XML file. It's for some savings account thing, and you enter in how much you want to deposit/withdraw, and I wrote in a comment somewhere that I'm using CLI args because nobody in their right mind would want to sit at a computer and punch in numbers all day. So my program is much more scriptable (BASH-able), especially if you have it pull the data needed for arguments from another file or a DB. Oh and I even made it work with multiple accounts. The assignment only had to deal with one account. :v:
And on the written part that he calls "The problem solving process" I scribbled down a bunch of crap and then wrote "This serves no purpose" off to the side because I never plan ahead. I just start writing some code and fix it up along the way, so these papers are always an afterthought to me.
I'm sure my instructor will love my program. I included a README for him in case he can't figure out how to use a command line. But I didn't put a .txt extension on it, so he'll have fun opening it. :3:
Here is the code:
[url]http://pastebin.com/m43290837[/url]
Paste binned for being like 450 lines in 3 files.
[QUOTE=TehBigA;18433379]Also, a pointer is a memory address. It literally points to a value/code/data in RAM.[/QUOTE]
I know what a pointer is, I have used them. I was just making the comparison that a pointer to a pointer is bound to get messy. :P
[QUOTE=andersonmat;18434750]I know what a pointer is, I have used them. I was just making the comparison that a pointer to a pointer is bound to get messy. :P[/QUOTE]
They have very valid uses.
-snip-
Fuck it.
[QUOTE=andersonmat;18434828]I understand that they can but you can also use the for malicious things like finding user data in the ram.[/QUOTE]
Uhm. Just about everything in programming can be used for malicious purposes.
[QUOTE=andersonmat;18434828]I understand that they can but you can also use the for malicious things like finding user data in the ram.[/QUOTE]
Multi-tasking operating systems on x86 use "Protected Mode". One process cannot directly dereference a memory address pointing to a different process.
[QUOTE=jA_cOp;18436359]Multi-tasking operating systems on x86 use "Protected Mode". One process cannot directly dereference a memory address pointing to a different process.[/QUOTE]
Indeed. Every program has its own virtual range of 2^number of bits addresses. #FF220011 in process A is not the same as #FF220011 in process B.
[QUOTE=Jallen;18436887]Indeed. Every program has its own virtual range of 2^number of bits addresses. #FF220011 in process A is not the same as #FF220011 in process B.[/QUOTE]
on 32 bit 0x0-0x7FFFFFFF is the applications private memory and 0x80000000-0xFFFFFFFF is kernel memory which is shared.
[url]http://www.ravenreport.com/blog/post/Windows-Memory-Architecture-Part-1.aspx[/url]
[QUOTE=high;18437315]on 32 bit 0x0-0x7FFFFFFF is the applications private memory and 0x80000000-0xFFFFFFFF is kernel memory which is shared.
[url]http://www.ravenreport.com/blog/post/Windows-Memory-Architecture-Part-1.aspx[/url][/QUOTE]
I assume you can't actually put anything in kernel memory though? I guess it's reserved for things like loaded DLLs.
User mode applications cannot access that range. It is strictly kernel memory. And all kernel mode applications share the memory.
[quote]Kernel Memory, unlike the User Mode Address space, shares the same address space (2GB by default on a 32bit system), and all kernel allocations share the same memory space.[/quote]
Kinda an interesting subject :v:.
[QUOTE=Jallen;18437415]I assume you can't actually put anything in kernel memory though? I guess it's reserved for things like loaded DLLs.[/QUOTE]
Userspace code is naturally not allowed to put anything in kernel memory. Kernel memory works just like all memory works in real-mode, except that it's separated from protected memory.
Shared libraries are not put in kernel memory. They're loaded into the userspace of the loading process. If all processes shared DLL memory, it wouldn't be possible for the DLL to have state, and all exported functions would need to be protected by a mutex.
Sorry, you need to Log In to post a reply to this thread.