Here are two more images, with srand commented out on both. There are some similarities if you rotate the images around I suppose.
Allegro Maze
13646
Irrlicht Maze (I forgot to mention before...
Type: Posts; User: binks
Here are two more images, with srand commented out on both. There are some similarities if you rotate the images around I suppose.
Allegro Maze
13646
Irrlicht Maze (I forgot to mention before...
Sure, thanks for your interest! Although it generates a different maze every time, preventing a direct comparison, I've made both generate 11x11 mazes, with different "cell sizes" in between.
...
Allegro 5, as ~Kyo~ stated, is powerful and not too tricky, and I'd highly recommend it!
As for 3D engines, there aren't any C only engines that are straightforward to my knowledge...
Just another thought, since the 2D maze generator was using lines as the walls, and I want to use cubes for the walls, does the thickness of the cube need to be accounted for? For example, when...
Hey Cboard,
I want to make a 3D maze generator, and after searching google for a little bit I found a 2D maze generator that works quite well. I found it here: Maze generation - Rosetta Code
...
So after I call strrchr, I should check to see if:
if(location == NULL)
Or do I have to go
strcmp(location, NULL);
Ok, I have a problem. What is wrong here?
char newNames[numFiles][256];
char fileNames[][256] = {"Test1.zip", "Test2.rar"};
int numfiles = 2;
for(i = 0; i < numFiles; i++)
{
...
Yes, Ok I see it now. I tested it using strcpy as well, and it works. So now I know I can treat location + 1 as a string.
Thanks for the help, I can take it from here :)
Hello,
So I have a string with a full filepath. However, I only want the immediate filename, without the full path. How can I remove the other bits or even just copy the part I want into...
Oh, and I have changed some of the function parameters because they weren't necessary for the way of extraction.
Ok, so I have a problem. For the archiver, when I write the filenames, I write the full path. But if your extracting the files, the full path might not exist so it will fail. How can I remove the...
Ok, here is the code archive the files. This code works great.
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BUFFER_SIZE 4096
You if statement says
if(battleCommands = 65)
it should be
if(battleCommands == 65)
Hi, I have a program that writes out a list of files to a single or multi volume archive. It works very well. I need to write code that can extract the files though. Can most of the work be done...
So, I tried using lots of printf statements, but I still have no clue. The program is doing what it's suppose to, but I can't find the mistake that is making it not do what I want it to.
EDIT:...
Ok, so with this modified OpenVolumeFile function, it now splits it into correct volumes successfully. BUT, now it stops at 6.10mb (before it was 1.1, now it's 5 + 1.1mb) So, should I be assuming...
Well, I have the volume size specified as 5 mb, so it stopping at 1.1 mb does not make sense. I'll check the OpenVolumeFile function and get back to you.
Why would the 0 be the problem, since the first archive needs to be called "name-0"?
Hello all!
I'm having a problem with my code. The purpose is that it will archive multiple files in a single or multi volume archive. However, it only writes a volume that is 1.10mb instead of...
So I've gotten my code to run, and it runs well except it only writes 1.10 mb's to the archive and then it stops. Is there a noticable problem with this code?
/* Uses the same code from above...
Yes, something like that. So I would just need to specify the max length of each string, but I'd still be able to make calls like this?
size_t fileBytesLeft = fileSizes[i];
Hello, I'm having a problem with the following code. I need to be able to pass several functions the data from a 2d array. I will be passing filenames. Here is the code.
#include <windows.h>...
I've been able to fix most of the errors (25 or so), but I'm getting linker errors saying undefined reference to WriteArchiveHeaderRecord and WriteBuffer. Are those names for functions I have...
Not that either, supposively I intended to do it "for fun" but it wasn't.
No, this isn't homework. I had actually just commented out - headersize; because it was not working with it.