• What are you working on? v15
    5,001 replies, posted
[QUOTE=Venice Queen;27540473]Incorrect. I thought the same thing, but then I tried it and the PE loader complained that the executable was corrupt.[/QUOTE] You did it wrong, I've done it before.
PS copy /B Direct3DSample.exe+gwen.png out.exe appends files :x
That's extremely weird... I appended garbage onto the end with a hex editor, made sure the file size was aligned properly and it didn't work :sigh: [editline]20th January 2011[/editline] So while it may work for you, it's not the most portable solution: [img]http://ahb.me/1xaq[/img]
[QUOTE=Venice Queen;27540649]So while it may work for you, it's not the most portable solution:[/QUOTE] People do it all the time. You've used EXEs that have had data appended to them, it's something you're doing wrong. [url]http://i.imgur.com/fWiDe.png[/url] You simply add data onto the end, nothing else.
Woops, Delphi must insert some checksum code (HeidiSQL is a Delphi app), since it works on Firefox. Interesting.
[QUOTE=garry;27540592]PS copy /B Direct3DSample.exe+gwen.png out.exe appends files :x[/QUOTE] How do you then access the files? Just treat them like they are in the same directory?
[QUOTE=deloc;27536407][url]http://dl.dropbox.com/u/2116169/dirtyloud.wav[/url] [editline]19th January 2011[/editline] keep in mind that compression is not constant in flac and is HIGHLY variable depending on the content.[/QUOTE] Yeah, you're right. I'll try other compressors on it and see what the average is. Prove that your codec is lossless and I'll be impressed. EDIT: I'm really sure your encoder is just broken. FLAC setting 5-8 gets 84.60%, Monkey's Audio normal-insane gets 83.46%, OptimFROG normal 83.35%, OptimFROG best 83.32%, and the highest compression I've been able to find, OptimFROG "bestnew" 83.00%. I think 83% hits the theoretical limit for that clip (notice how the improvements are asymptotic). [i]Maybe[/i] if you optimized your codec [i]specifically[/i] for that clip and nothing else, you'd be able to get higher compression, but I still don't think you could ever hit 56% lossless for that clip.
[code]short[] block = wav.Samples[0]; [/code] reeeehhhhyyyyy
[QUOTE=Jallen;27540766]How do you then access the files? Just treat them like they are in the same directory?[/QUOTE] I would assume you have to load your own exe and extract them from the end?
[QUOTE=garry;27541127]I would assume you have to load your own exe and extract them from the end?[/QUOTE] probably, since most archivers can open archive-appended exes. at least 7z can.
[url]http://dl.dropbox.com/u/99765/BSP.rar[/url] Had this gathering dust so I stripped it down and uploaded the source. [img]http://dl.dropbox.com/u/99765/61436276.png[/img]
[QUOTE=layla;27541204][url]http://dl.dropbox.com/u/99765/BSP.rar[/url] Had this gathering dust so I stripped it down and uploaded the source. [img_thumb]http://dl.dropbox.com/u/99765/61436276.png[/img_thumb][/QUOTE] It's working, I'm in love. Thanks!
[QUOTE=layla;27541204][url]http://dl.dropbox.com/u/99765/BSP.rar[/url] Had this gathering dust so I stripped it down and uploaded the source. [img_thumb]http://dl.dropbox.com/u/99765/61436276.png[/img_thumb][/QUOTE] I think I'm in love with your coding style :P (compared to mine messy one)
[QUOTE=layla;27541204][url]http://dl.dropbox.com/u/99765/BSP.rar[/url] Had this gathering dust so I stripped it down and uploaded the source. [img_thumb]http://dl.dropbox.com/u/99765/61436276.png[/img_thumb][/QUOTE] Got to love you coding style, finally someone who has a style similar to mine :D [editline]20th January 2011[/editline] codingstyle-mind
[QUOTE=layla;27541204][url]http://dl.dropbox.com/u/99765/BSP.rar[/url] Had this gathering dust so I stripped it down and uploaded the source. [img_thumb]http://dl.dropbox.com/u/99765/61436276.png[/img_thumb][/QUOTE] Very nice, also a nice and clear coding style.
Aggre. But you deleted all the comments or you're not commenting your code at all? :o
It's relatively self explanatory so there's no real overwhelming need for comments. A few here and there would be nice though.
[QUOTE=layla;27541204][url]http://dl.dropbox.com/u/99765/BSP.rar[/url] Had this gathering dust so I stripped it down and uploaded the source. [img_thumb]http://dl.dropbox.com/u/99765/61436276.png[/img_thumb][/QUOTE] I like that coding style, looks quite similar to mine!
[QUOTE=bootv2;27541220][cpp] if(coords[ntemp-1][ntemp2] != 2) Character.Move(-75.f*ElapsedTime, 0); X_char_coords + (-75.f*ElapsedTime);[/cpp][/QUOTE]Do you need brackets around your if?
[QUOTE=tobias104;27542485]Do you need brackets around your if?[/QUOTE] -snip- Yes you do, didn't see what you meant. bootv2, you have 2 statements for one if, if you do that you need curly braces {} Either that or you are doing some truely horrid practice by having a statement which isn't dependent on the if on the same line as it.
-snip-
How would I go about saving a 3D world? For example, I have separate cubes split into 16 * 16 grids (6 lots, 1 for each face) I can build shit on these cubes, but how would I make it so that I can save it? XML Preferably. Unless you suggest something better.
If the cubes are identical then it's as simple as saving x and y components as binary data sequentially in a file. If there's more info like cube type, then you could just have another component to save. Binary files are much smaller and faster to load than xml files. If you want to use xml though, I recommend using IrrXML. [url]http://www.ambiera.com/irrxml/[/url]
[QUOTE=Jallen;27543087]If the cubes are identical then it's as simple as saving x and y components as binary data sequentially in a file. If there's more info like cube type, then you could just have another component to save. Binary files are much smaller and faster to load than xml files. If you want to use xml though, I recommend using IrrXML. [url]http://www.ambiera.com/irrxml/[/url][/QUOTE] I'll be sure to look into it. Yes, I have building types. Eg. Windmill, Power Station, House, Mine, Dock, etc.
I'm wondering something: Would it be wrong to post Python 'programs' (which I suppose are essentially scripts since they're interpreted) here?
[QUOTE=T3hGamerDK;27543176]I'm wondering something: Would it be wrong to post Python 'programs' (which I suppose are essentially scripts since they're interpreted) here?[/QUOTE] Probably not... What a shitty page king...
Python is a programming language like any other, of course you can.
[QUOTE=Loli;27543130]I'll be sure to look into it. Yes, I have building types. Eg. Windmill, Power Station, House, Mine, Dock, etc.[/QUOTE] This is a C++ article, but the general idea is the same for whatever you use I expect. [url]http://www.codersource.net/c/c-tutorial-on-file-operations/c-file-i-o-binary-files-using-fstream.aspx[/url] Essentially you can just cast any data into chars, since chars are 1 byte each, write it to a file and retrieve it by just casting back to your type. If you have a fixed structure for elements in your world you can just write them in order, no need to put separators inbetween them or anything. For simplicity, it's best to go with a fixed size.
[QUOTE=layla;27541204][url]http://dl.dropbox.com/u/99765/BSP.rar[/url] Had this gathering dust so I stripped it down and uploaded the source. [img_thumb]http://dl.dropbox.com/u/99765/61436276.png[/img_thumb][/QUOTE] This is awesome, thank you very much for sharing! I enjoyed looking through your code; your coding style is exceeding similar to mine so I had no trouble at all :P Very nice work
[QUOTE=layla;27541204][url]http://dl.dropbox.com/u/99765/BSP.rar[/url] Had this gathering dust so I stripped it down and uploaded the source. [img_thumb]http://dl.dropbox.com/u/99765/61436276.png[/img_thumb][/QUOTE] this image remembered me about the source engine's entity limit: [media]http://www.youtube.com/watch?v=ewh3mBxW8Mg[/media] i don't know why
Sorry, you need to Log In to post a reply to this thread.