|
|
|
SRAWUser Recent posts by SRAW
Truck: Birds and shit, yo. in General
sprinkles said: I wish we had snow...
lolfag, I got snow AND it sucked, cause we couldn't leave the house for food
Yesterday at 15:15
Truck: Birds and shit, yo. in General
Unlike you I tend to try to stay on topic and be friendly to the forum users, SORREH
Yesterday at 14:46
Truck: Birds and shit, yo. in General
Why are you all talking about aaronjer's fatness when the whole topic is supposed to be about birds?
Yesterday at 14:01
Truck: Video Player in Programming Help
Hmm... when I was posting my comment I thought about LoL jokes occurring, but didn't expect dr to make them :O and LoL is so gay that rockbomb's pants cant express the amount of gayness in a game that gay
Tuesday at 19:26
Truck: Video Player in Programming Help
Down Rodeo said: When I play Battlefield, my character appears to go back in time.
That made me LoL for no reason lol
Tuesday at 14:26
Truck: Russia girls and boobs in Video Recommend!
I got here from watching dream theater
Monday at 19:40
Truck: Video Player in Programming Help
DR uses a 56k modem so thats why he complains and bitches and moans over trivial matters such as this, true story
Monday at 16:21
Truck: Help in Hammer Mapping
yes, you have to set the pitch, now GO AND FIX YOUR MAP
Saturday at 18:00
Truck: More c halp in Programming Help
And fyi here's the whole thing, that finally works, and it's for this online game awbw.amarriner.com code #include <stdio.h>#include <stdlib.h> int main(int argc, char *argv[]) { FILE * thefile; FILE * savefile; thefile = fopen(argv[1],"r"); savefile = fopen(argv[2],"w"); if(thefile!=NULL) { printf("%s has been successfully opened\nWriting to %s\n",argv[1],argv[2]); } else { printf("%s failed to open... exiting",argv[1]); exit(1); } int i,o,k,h,b; int p = 0; char *t_name[52]; int t_loc[52]; t_name[0] = "."; t_loc[0] = 0; t_name[1] = "%"; t_loc[1] = 30; t_name[2] = ","; t_loc[2] = 60; t_name[3] = "@"; t_loc[3] = 90; t_name[4] = "0"; //0 = black tile = error t_loc[4] = 120; t_name[5] = "^"; t_loc[5] = 150; t_name[6] = "0"; t_loc[6] = 180; t_name[7] = "^"; t_loc[7] = 210; t_name[8] = "-";//aws doesn't save road data, it fixes road on program t_loc[8] = 1; t_name[9] = "["; t_loc[9] = 2; t_name[10] = "]"; t_loc[10] = 32; //t_name[11] = "-";//aws doesn't save road data, it fixes road on program //t_loc[11] = 1; t_name[12] = "{";//aws also doesn't save river data t_loc[12] = 3; t_name[13] = ",";//aws doesn't save data on sea t_loc[13] = 60; t_name[14] = "(";//aws doesnt save data on shoals t_loc[14] = 39; // t_name[15] = "-"; //t_loc[15] = 1; // t_name[16] = "@"; // t_loc[16] = 90; // t_name[17] = "@"; // t_loc[17] = 90; t_name[18] = "0";//awbw upload function doesn't have data for pipes t_loc[18] = 16; t_name[19] = "0"; t_loc[19] = 226; t_name[20] = "0"; t_loc[20] = 167; // t_name[21] = "0"; // t_loc[21] = 167;//aws doesn't save data on damaged pipe type t_name[22] = "i"; t_loc[22] = 44; t_name[23] = "e"; t_loc[23] = 45; t_name[24] = "f"; t_loc[24] = 46; t_name[25] = "g"; t_loc[25] = 47; t_name[26] = "h"; t_loc[26] = 48; t_name[27] = "o"; t_loc[27] = 54; t_name[28] = "j"; t_loc[28] = 55; t_name[29] = "l"; t_loc[29] = 56; t_name[30] = "m"; t_loc[30] = 57; t_name[31] = "n"; t_loc[31] = 58; t_name[32] = "t"; t_loc[32] = 64; t_name[33] = "p"; t_loc[33] = 65; t_name[34] = "q"; t_loc[34] = 66; t_name[35] = "r"; t_loc[35] = 67; t_name[36] = "s"; t_loc[36] = 68; t_name[37] = "y"; t_loc[37] = 74; t_name[38] = "u"; t_loc[38] = 75; t_name[39] = "v"; t_loc[39] = 76; t_name[40] = "w"; t_loc[40] = 77; t_name[41] = "x"; t_loc[41] = 78; t_name[42] = "5"; t_loc[42] = 84; t_name[43] = "1"; t_loc[43] = 85; t_name[44] = "2"; t_loc[44] = 86; t_name[45] = "3"; t_loc[45] = 87; t_name[46] = "4"; t_loc[46] = 88; t_name[47] = "a"; t_loc[47] = 95; t_name[48] = "b"; t_loc[48] = 96; t_name[49] = "c"; t_loc[49] = 97; t_name[50] = "d"; t_loc[50] = 98; for(i=0; i<10; i++) { o = fgetc(thefile); //unimportant } o = fgetc(thefile); h = o; // h = height o = fgetc(thefile); b = o; // b = base o = fgetc(thefile); //tileset - not needed int l=0,j=0; char *map[h+b][b+h]; for(i=0; i<((h*b)*2); i++) { //printf("%d",fgetc(thefile)); if ((i & 1) == 0) { o = fgetc(thefile); //IMPORTANT!! after each byte there is an zero! if((p%b)==0&&i!=0) { // printf("\n"); //fprintf(savefile,"\n"); l++; j=0; } for(k=0; k<52; k++) { if(o==t_loc[k]) { // printf("%s",t_name[k]); // fprintf(savefile,"%s",t_name[k]); map[j][l] = t_name[k]; // printf("%s",map[j][l]); //works j++; break; } else if(k==51) { //printf("0"); map[j][l] = "0"; // printf("%s",map[j][l]); //fprintf(savefile,"0"); j++; break; } } } else { o = fgetc(thefile); //skip odd p++; } } printf("\n"); int n,m; for(n=0;n<b;n++) { for(m=0;m<h;m++) { fprintf(savefile,"%s",map[n][m]); } if(n!=(b-1)) { fprintf(savefile,"\n"); } } return 0; }
2012 Jan 25 at 18:13
Truck: Sorry Guys in General
I can't believe sloth goes to that gayass site, because even I don't go there.
2012 Jan 25 at 18:12
| |