Well, I'm making this program that can compile a map from a script. Alot of people might first think we already have OME, so we wouldn't need this. But does OME have a add tree button? No it dosn't. Does this have one? No. The reason I bring that up is that in the program I'm making I plan to allow people to make functions. The main preset function is "addbrick(int x,int y,int z,string type)" for example "addbrick(51,61,12,water);" would add a block of water at 51,61,12. You could make a add-tree fucntion that would add a tree. So all you must do is "addtree(10,10,35);" to add a tree. (once you made the addtree() function)
I plan to release a .exe of it soon, possibly in a few hours. I do have some questions about the first block of hex in the uncompressed map file, but I hope to solve them myself. Also, any suggestions?
Sample file:
mapauthor="Azjherben";
maptitle="Sample map.";
mapsize=(256,256,64);
funt tree(int x,int y,int z)
addbrick(x,y,z,wood);
addbrick(x+1,y+1,z+1,wood);
addbrick(x+2,y+2,z+2,wood);
addbrick(x+3,y+3,z+3,wood);
addbrick(x+4,y+4,z+4,wood);
addbrick(x+5,y+5,z+5,wood);
addbrick(x+6,y+6,z+6,wood);
~~ alot of addbrick(x+#,y+#,z+#,leaves); here
end
~~ other map generation things here
tree(45,64,32);
Having a simple check for if there is something below it and if not moving there is extremply simple, olny one line in most programming languages, but I suppose it is the basic element in any physics.
Oh, you'd add it to the navbar, I forgot you owned the forums site too.
Anyway, atm what it does is you upload a file and it makes a little html page with the map title at the top. Then the description, then the link at the bottom. It dosn't look great, but I just started.
Well, it works (I just finished!), so you can try it out for now.
But, is there any other way you suggest I do it?
Becuase, I'm not seeing the big securty hole atm, I know I have alot more work to do but It already checks for a file under 180 kb that ends with .dat then it strips HTML tags away
Okay then.
Anyway, I'm going to take a quick break from the webpage.
And yes, I know the view.php page is filled with errors.
(I'm was editing it and am in the middle of adding things.)
0
Well, I'm making this program that can compile a map from a script. Alot of people might first think we already have OME, so we wouldn't need this. But does OME have a add tree button? No it dosn't. Does this have one? No. The reason I bring that up is that in the program I'm making I plan to allow people to make functions. The main preset function is "addbrick(int x,int y,int z,string type)" for example "addbrick(51,61,12,water);" would add a block of water at 51,61,12. You could make a add-tree fucntion that would add a tree. So all you must do is "addtree(10,10,35);" to add a tree. (once you made the addtree() function)
I plan to release a .exe of it soon, possibly in a few hours. I do have some questions about the first block of hex in the uncompressed map file, but I hope to solve them myself. Also, any suggestions?
Sample file:
0
Then put a new maop in the folder.
And rename that server_level.dat
0
0
0
0
0
I know, if I choose to do this, I'll certainly choose some mods. :wink.gif:
0
0
I need alot of people to try, as someone had a problem with a ligit map being rejected as a false .dat
Also, I could implement a system where I check the uploads personally, if they are crappy or broken they would be deleted and etc.
0
http://azjherben.org/MCMaps/view.php
There are none though to see, if that's what your thinking.
0
0
So, if I can find a way to stop that do I still have to redo everything else in SQL?
0
In fact, that would be much easier!
0
Anyway, atm what it does is you upload a file and it makes a little html page with the map title at the top. Then the description, then the link at the bottom. It dosn't look great, but I just started.
Well, it works (I just finished!), so you can try it out for now.
But, is there any other way you suggest I do it?
Becuase, I'm not seeing the big securty hole atm, I know I have alot more work to do but It already checks for a file under 180 kb that ends with .dat then it strips HTML tags away
0
Anyway, I'm going to take a quick break from the webpage.
And yes, I know the view.php page is filled with errors.
(I'm was editing it and am in the middle of adding things.)