- Joined
- Jul 28, 2007
- Messages
- 920
Is possible to hack wc3 to enable playing maps in LAN or some way that are larger than 4mb. And will this be enabled in RtC ?
LAN does have a filesize limit, it's the same as battle.net.
Right now you need to import the models into War3Patch.mpq with any MPQ editor. And every user who wants to see those models would then have to do the same with their own War3Patch.mpq file. This is not good enough, because most people don't know how to work with MPQs. Your best shot is creating an installer for your map, which of course requires programming. (Or at least some scripting knowledge if you use NSIS or something like NSIS.)How would you compile the .mpq file? just with and mpq compiler i'm guessing?
Yes, you have the ability. But what about others who don't have wehack? People should not be required to run an exe every time they want to play warcraft. A one time installer is more elegant.There's no reason to edit any files, we have the ability to inject mpq's which overrides everything just like patch.mpq does.
I haven't tested it, but I seriously doubt imported things will show up. However you can just SHIFT+click on the model field and change it directly (or import the model into your map, set the unit's model to the imported file then remove the import). Same thing for icons.New question. If i import models, icons, and music into the war3patch.mpq. Will everything show up in the editor?
call PlayMusic("folder_in_the_war3_directory\\5MB_file.mp3") //this works.
//The file isn't imported into the map, it just sits in my War3 directory.
function snd takes nothing returns nothing
local sound soundHandle=CreateSound("OurMapsName\\big_music_file.mp3",false,false,false,10,10,"DefaultEAXON")
call StartSound(soundHandle)
endfunction
function InitTrig_snd takes nothing returns nothing
set gg_trg_snd=CreateTrigger()
call TriggerRegisterPlayerEvent(gg_trg_snd,Player(0),EVENT_PLAYER_END_CINEMATIC) //Pressing ESC is my favorite debugger event :)
call TriggerAddAction(gg_trg_snd,function snd)
endfunction
You want to go the mpq way? But putting your files into their mpq is not simple either. People won't trust exe files and hacking warcraft's mpq files will definitely raise alarms. I prefer zip. People trust zip.But i think its better idea to put all things in mpq, its harder to hack them then. And i think it will work better all together. Ppl could change models and such things from folders, harder from mpq... But that isnt that important.
In Reign of Chaos in place of missing models there is simply nothing. I tested with Castle: The Ground Art was shown, but the model was simply invisible. The building is also unselectable without a model. (Triggers can still select it though.)About players who doesnt have needed data, i think that they can still join maps, but instead models they will see green boxes. I think, or they will get error.
That's why I suggested putting everything in Imports\YourName\YourMapsName\ This will keep everything beautifully organized.Anyway update us also . This will unlock 4mb size limit, but it will bring quite of chaos in wc3 folders... if things arent done right.
Both folders and deeply nested subfolders work for me. Probably the error is on your end. JASS strings require escaped backslashes: string s = "path\\to\\folder\\file.ext". Object Editor strings are normal: "path\to\folder\file.ext".Hm... seems like it wont work if i put files into "Imports" or "Data" folders, but when i put them into wc3 dir or Maps directory works fine. Hows with you?
No, that code probably doesn't work. But look at the other one titled "Note 3: Here's a real example:". (Playing a 5MB wav sound file from a subfolder.) I tested it extensively and it works fine on all my computers.Did you test this:" call PlayMusic("folder_in_the_war3_directory\\5MB_file.mp3") "