HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Map Size

02-04-2007, 02:37 AM#1
Mapz_Maker
Could someone tell me what files specifically are related to map size, How i could go about creating maps with modified files, etc.
I am making a map creator to build maps above 256x256 and i need to know how to do that, i already have the interface and actions, just not the actual map production. And How do i create files with Visual Basic.
This is entirely in Visual Basic.
02-04-2007, 05:06 PM#2
wyrmlord
Have you checked the stickied thread? That thread contains all the info you should need to generate a map. I don't know how file reading and writing is done in Visual Basic, but I'm guessing that it wouldn't be too hard to find information about it.

Also, I believe you can't double post until 48 hours after your last post in a thread.
02-04-2007, 06:21 PM#3
Mapz_Maker
deleted double-post, I need a way to create files and add MPQ behavior to them, I cannot find a single command to create a file!!!! It is unreal!! If you know how to allow the usage of other programming languages within VB then i can solve this with perl easily. And once that dilemma is solved i would like to be able to make the w3x map i would make (blank file) into a real map with the dimensions i specify, im uploading screen shots in a minute.
02-04-2007, 08:01 PM#4
wyrmlord
If you want to be able to make MPQ files, I would suggest using SFmpqapi
02-05-2007, 01:06 AM#5
Mapz_Maker
How would i implement SFmpqapi into VB?
02-05-2007, 01:14 AM#6
wyrmlord
SFmpqapi is in VB as well as C++ is you looked.
02-05-2007, 07:38 PM#7
Mapz_Maker
Hey Wyrmlord how do you change the custom user title? i can't find it in the User CP.
EDIT: And i have the sfmpqapi but what files do i need to insert into a program for it to work with vb and what are the commands and lastly HOW DO I CREATE FILES WITH VB!!!!! I Have Yet to figure that out!!
02-05-2007, 07:42 PM#8
wyrmlord
Did you try searching the forums before asking? A question about this was asked before. You need 60+ rep in order to do so.
02-05-2007, 07:52 PM#9
Mapz_Maker
1) no.
2) 60+ rep to do what?
[bonus]
3) forgot about screenshot here it is.
Attached Images
File type: jpgmbpic.jpg (44.1 KB)
02-05-2007, 08:21 PM#10
wyrmlord
2)
Quote:
Originally Posted by Mapz_Maker
Hey Wyrmlord how do you change the custom user title? i can't find it in the User CP.
3)Are you trying to ask what files do you need to modify in order to make a map?

Also, for creating files in vB, try this link.
02-05-2007, 08:54 PM#11
Mapz_Maker
Yes, What files do i need to modify to change the map size, the point of this program is to be able to create blank maps with the desired file size and, eventually, modify existing maps.
P.S. Where are all the other people who view this thread?!?
02-05-2007, 09:08 PM#12
wyrmlord
Quote:
Originally Posted by wyrmlord
Have you checked the stickied thread? That thread contains all the info you should need to generate a map.

You should be able to easily find the information you need in the stickied thread. That's why the thread is stickied.

Just look for any files that have any information based off the map file size.

Also, you'd probably want to allow users to select a tileset.
02-05-2007, 09:14 PM#13
Mapz_Maker
That is a big thread... i guess i will go look through it. it would be easier to know where to look!!
EDIT: Do i need to edit the pathing map or just the .w3i?
03-05-2007, 12:58 AM#14
Mapz_Maker
Ok, so here i am a month later. A Phenomenally better programmer. I could not find the function (or sub) in SFmpq to allow me to extract files, i saw how to insert. Anyone know how to extract files to filepath from mpqsource?
03-08-2007, 02:18 AM#15
BlacKDicK
PSEUDOCODE (Since I moved from VB to C# my VB skills are terrible by now)

Code:
int hMpq
if (SFileOpenArchive("...Maps\BootyBat.w3m", 0, 0 ref hMpq))
{
  int hFile
  if (SFileOpenFileEx(hMpq, "war3map.j", 0, ref hFile)
  {
    fileSize = SFileGetFileSize(hFile, 0);
    Dim buff[fileSize]
    int bytesRead
    if (SFileReadFile(hFile, buff, fileSize, ref bytesRead, 0))
    {
      'Do stuff with buffer
    }
    SFileCloseFile(hFile)
  }
  SFileCloseArchive(hMpq)
}