View Full Version : Using custom portraits
korika
06-03-2007, 2:54 PM
Im working on a new campagin, but i cant figure out how to get custom portraits to work, please help me, it would be greatly appreciated
Death505
06-03-2007, 3:21 PM
2 ways you can either make the unit you want to have a diff protirate in a mod editor like dat edit..or for a custom portirt for a unit...well umm yea you can only do that in dat edit...aka modding..
matefkr
06-03-2007, 3:27 PM
kay. If i remember back, i saw something about that with a trick (or maybe not)..But i know a sure way.
First, you have to make this campaign for single player (or lan multy).
You have to own 1.12b version of broodwar.
You have to get über@tion (or maybe starforge).
You have to open your initiated (already sized) map (or use scmdraft2 or other), with Über@tion 2.
make a trigger with über@tion (http://up.kupatrix.com/f/9/Programs/Uberations.rar) which will set custom portraits for units.
You also need utilize ubecalc (here (http://clanunknown.net/euds/ubecalc2.php)): You need action for 1.12b, the action will set UNITS.DAT-->chosen units portrait for a custom one (whenever you want). In chosing the neccesary value (the value of the portrait) you can use datedit 1.3-1.4.
korika
06-03-2007, 4:01 PM
Death, could you explain the process in more detail?
PS: i dont mind if i have to make an mpq to run the portraits
matefkr
06-03-2007, 4:27 PM
The simpliest way (for me:)) is that you get a version of datedit, then you change the units' portrait you want, and after you have done with that, you choose single file mpq export (or multiple, i don't care), then you should select the patch_rt.mpq as target (make backup first) and click ok then yes.
edit: without mpq mod:
in the units.dat format you have to write the id numbers of unit portrait to the section of the unit you want to change. This section is inside the starcraft data-memory. You have to calculate the offset of the neccesarry section with ubecalc, and it also show you wich player number you have to use, and wich unit id (unsigned). Based on the unit id and player number, you can make an action with uberation 2 (trigg manager). chose a player, then make a new trigger, then set a condition, then use the set death (advenced) section and when you chosen that, you have to double click on the neccesary operation (add/set/subst) and write the number which you want to set/add/substrat (this case you have to set, then write the portrait id), after you clicked write the unit id (unisgned, from ubecalc) then chose a player (written in ubecalc) with doubleclick. You can find an example for something in another thread: Decloaking dark templars or smthing like that. (open the maptrigg with überation2)
You can use datedit to find out the portrait id.
Also note, you have to run the 1.12b version of starcraft.exe
korika
06-03-2007, 4:55 PM
It seems i cant really get an mpq to change anything for me
Btw: i use data edit, Winmpq and Mpqdraft
matefkr
06-03-2007, 4:59 PM
Probably you have done well the easiest way. The only one question, is that you mpq only readable, or sc was running when you tried to do mpq export with datedit.. Or i don't understand the question.
korika
06-03-2007, 5:00 PM
boy i suck at anything modding
Does anybody know where i cant find tuts about this kinda stuff
matefkr
06-03-2007, 5:03 PM
make sure starcraft isn't running, open datedit, change the unit portrait you want, export to patch_rt.mpq and thats all.
korika
06-03-2007, 5:12 PM
THANK THE LORD
Ok, so i know how to change portrits, now how do i change it to a custom portrait that i downloaded?
Then, how do i make a sempq that works for the campagin
matefkr
06-03-2007, 5:17 PM
You need to get a listfile for your winmpq, or get stardraft. Then you should find the portrait's file-name you wanna change (you can see that in datedit-->portraits). Then you have to find the whole path with opening the stardat or broodat.mpq. As you have found the path of the smk you want to change, you have to place your custom smk (rename it according what portrait you want to change) to the same path, where you have find the old smk (in stardat or broodat.mpq), except, that you will place it to patch_rt.mpq.
If you wanna make it to work only for your campaign, you should get scmloader from shadowflare's page (http://shadowflare.samods.org/) and you also have to add the files into your map file instad of patch_rt.mpq.
matefkr
06-03-2007, 5:30 PM
Any further questions?
EDIT: only next time.
korika
06-03-2007, 5:39 PM
All of this seems so complicated just to replace portraits, there has to be a better way, like they way they did with antioch chronicles, with sempq
matefkr
06-04-2007, 1:16 PM
Sempq? You only have to find the path of the portrait (.smk file) which you want to exchange and make a new mpq file, then insert your modified/custom smk (portrait) to this new mpq, using the same path what you have found; then make a sempq.
korika
06-04-2007, 5:43 PM
Thanks man, i owe you one, im asumeing it the same for unit reponses
matefkr
06-04-2007, 6:52 PM
my pleasure!
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.