[GUIDE] SHDR Version for TWRPG

Cheatpacks and learning how to use them, as well as other guides for manipulating maps.

Moderator: Cheaters

arielwingedxxx
Newcomer
Posts: 4
Joined: June 13th, 2020, 9:40 am

Re: [GUIDE] SHDR Version for TWRPG

Post by arielwingedxxx »

I was testing my new map twrpg 0.36 f with changes in mpq ( thanks guide), i only did REMOVING ANTI SINGLEPLAYER and UP RATE DROP but the map twrpg 0.36f didn´t work in multiplayer ,( same map pc 1 and pc2 local network) When i join to the other map ( other player) it stay loading (8%) and i cant launch start ( being host )(posdata:in singleplayer not problems) what i can do? thanks ....
arielwingedxxx
Newcomer
Posts: 4
Joined: June 13th, 2020, 9:40 am

Re: [GUIDE] SHDR Version for TWRPG

Post by arielwingedxxx »

josh wrote:
nuzamacuxe wrote:It's due to CRC. Whenever you change anything in war3map.j the CRC will change, doesn't matter if you and your friend has the exactly same map. That doesn't applies to models (.mdx, .mdl, ...).
any solve for this things?
recompresss the mpq
kinoler
Newcomer
Posts: 2
Joined: February 16th, 2020, 7:01 am

Re: [GUIDE] SHDR Version for TWRPG

Post by kinoler »

Thank you very much. It was very helpfull for me.

Also if you want to resummon bosses more then 3 times:
1. Press "CTRL+F" and search for "<(3)";
2. You will find that "if" condition:
Spoiler:
if mCv[y1e]==0 and mdv[y1e]<(3)then
call Yje(y1e)
endif
3. Just delete the "and mdv[y1e]<(3)";
4. It will look like this:.
Spoiler:
if mCv[y1e]==0 then
call Yje(y1e)
endif
You can now re-summon bosses which do not cost MP.
To disable MP reduction:
1. Press "CTRL+F" and search for "has activated". If searching has no result try to "remaining MP" or ""stand work"".
2. You will find that "if" condition:
Spoiler:
if hnx((GetUnitUserData((W7v))))>=mcv[YJe]then
call hVx((GetUnitUserData((W7v))),hnx((GetUnitUserData((W7v)) - mcv[YJe])))
call oGr(YJe)
call RemoveItemFromStock(W7v,mBv[YJe])
call XYx(yvv,YJe)
call f4r()
call lfx(d1x((GetPlayerId((GetOwningPlayer(GetBuyingUnit())))))+" has activated "+GetObjectName(mBv[YJe])+" (remaining MP: "+I2S(R2I(hnx((GetUnitUserData((W7v))))))+"/"+I2S(R2I(hEx((GetUnitUserData((W7v))))))+")")
call SetUnitAnimation(W7v,"stand work")
call QueueUnitAnimation(W7v,"stand alternate")
call nwx((nLx("Abilities\\Spells\\NightElf\\ReviveNightElf\\ReviveNightElf.wav",$A,$A,3.268)),($7F),(W7v),$7D0,null)
endif
3. Look for "call hVx((GetUnitUserData((W7v))),hnx((GetUnitUserData((W7v)) - mcv[YJe])))" (it is the first line after "if").
4. Delete the "- mcv[YJe]" expression.
5. It will look like this:
Spoiler:
if hnx((GetUnitUserData((W7v))))>=mcv[YJe]then
call hVx((GetUnitUserData((W7v))),hnx((GetUnitUserData((W7v)))))
call oGr(YJe)
call RemoveItemFromStock(W7v,mBv[YJe])
call XYx(yvv,YJe)
call f4r()
call lfx(d1x((GetPlayerId((GetOwningPlayer(GetBuyingUnit())))))+" has activated "+GetObjectName(mBv[YJe])+" (remaining MP: "+I2S(R2I(hnx((GetUnitUserData((W7v))))))+"/"+I2S(R2I(hEx((GetUnitUserData((W7v))))))+")")
call SetUnitAnimation(W7v,"stand work")
call QueueUnitAnimation(W7v,"stand alternate")
call nwx((nLx("Abilities\\Spells\\NightElf\\ReviveNightElf\\ReviveNightElf.wav",$A,$A,3.268)),($7F),(W7v),$7D0,null)
endif
You can now re-summon all bosses without any restrictions.

Fatigue
Also afk system still work due to the fatigue system. To disable fatigue elevation:
1. Search for "PLAYER_STATE_RESOURCE_FOOD_USED";
2. You will find function like this:
Spoiler:
function d3x takes integer y1e,integer B8x returns nothing
if B8x<0 then
set B8x=0
elseif B8x>='d' then
set B8x=0
call z_e((Ex[(Dl[y1e])]))
endif
call SetPlayerState((P[(y1e)]),PLAYER_STATE_RESOURCE_FOOD_USED,B8x)
endfunction
3. Delete the "call SetPlayerState((P[(y1e)]),PLAYER_STATE_RESOURCE_FOOD_USED,B8x)" line.
4. Delete also the "call z_e((Ex[(Dl[y1e])]))" line.
5. It will look like this:
Spoiler:
function d3x takes integer y1e,integer B8x returns nothing
if B8x<0 then
set B8x=0
elseif B8x>='d' then
set B8x=0
endif
endfunction
Acceptable for the latest 0.43h_eng version.
Last edited by kinoler on January 30th, 2021, 11:03 am, edited 1 time in total.
User avatar
devoltz
Co-Admin
Posts: 3127
Joined: March 23rd, 2016, 8:06 pm
Has thanked: 9 times
Been thanked: 53 times

Re: [GUIDE] SHDR Version for TWRPG

Post by devoltz »

kinoler wrote:Thank you very much. It was very helpfull for me.

Also if you want to resummon bosses more then 3 times:
1. Press "CTRL+F" and search for "<(3)";
2. You will find that "if" condition:
Spoiler:
if mCv[y1e]==0 and mdv[y1e]<(3)then
call Yje(y1e)
endif
3. Just delete the "and mdv[y1e]<(3)";
4. It will look like this:.
Spoiler:
if mCv[y1e]==0 then
call Yje(y1e)
endif
You can now re-summon bosses which do not cost MP.
To disable MP reduction:
1. Press "CTRL+F" and search for "has activated". If searching has no result try to "remaining MP" or ""stand work"".
2. You will find that "if" condition:
Spoiler:
if hnx((GetUnitUserData((W7v))))>=mcv[YJe]then
call hVx((GetUnitUserData((W7v))),hnx((GetUnitUserData((W7v)) - mcv[YJe])))
call oGr(YJe)
call RemoveItemFromStock(W7v,mBv[YJe])
call XYx(yvv,YJe)
call f4r()
call lfx(d1x((GetPlayerId((GetOwningPlayer(GetBuyingUnit())))))+" has activated "+GetObjectName(mBv[YJe])+" (remaining MP: "+I2S(R2I(hnx((GetUnitUserData((W7v))))))+"/"+I2S(R2I(hEx((GetUnitUserData((W7v))))))+")")
call SetUnitAnimation(W7v,"stand work")
call QueueUnitAnimation(W7v,"stand alternate")
call nwx((nLx("Abilities\\Spells\\NightElf\\ReviveNightElf\\ReviveNightElf.wav",$A,$A,3.268)),($7F),(W7v),$7D0,null)
endif
3. Look for "call hVx((GetUnitUserData((W7v))),hnx((GetUnitUserData((W7v)) - mcv[YJe])))" (it is the first line after "if").
4. Delete the "- mcv[YJe]" expression.
5. It should look like this:
Spoiler:
if hnx((GetUnitUserData((W7v))))>=mcv[YJe]then
call hVx((GetUnitUserData((W7v))),hnx((GetUnitUserData((W7v)))))
call oGr(YJe)
call RemoveItemFromStock(W7v,mBv[YJe])
call XYx(yvv,YJe)
call f4r()
call lfx(d1x((GetPlayerId((GetOwningPlayer(GetBuyingUnit())))))+" has activated "+GetObjectName(mBv[YJe])+" (remaining MP: "+I2S(R2I(hnx((GetUnitUserData((W7v))))))+"/"+I2S(R2I(hEx((GetUnitUserData((W7v))))))+")")
call SetUnitAnimation(W7v,"stand work")
call QueueUnitAnimation(W7v,"stand alternate")
call nwx((nLx("Abilities\\Spells\\NightElf\\ReviveNightElf\\ReviveNightElf.wav",$A,$A,3.268)),($7F),(W7v),$7D0,null)
endif
You can now re-summon all bosses without any restrictions.
Thanks for the contribution to the guide, latter I will add it to main post.
Dusit.Thani
Newcomer
Posts: 6
Joined: February 19th, 2022, 6:37 am

Re: [GUIDE] SHDR Version for TWRPG

Post by Dusit.Thani »

Hi, I'm back playing TWRPG, was trying to create an SHDR + Single Player version for the latest map of the game but upon checking, it seems like a lot has changed in the map's code, therefore, this guide seems to be outdated anymore as I'm trying to follow the instruction but couldn't work my way unlike before. This guide was very helpful to me last time which was 2 years ago, and would deeply appreciated if this guide will get an update. Much love.
bigdm
Newcomer
Posts: 3
Joined: June 11th, 2007, 9:51 pm

Re: [GUIDE] SHDR Version for TWRPG

Post by bigdm »

Hello, would anyone know which part of the code edits the lootbox droprate? It seems that the droprate for things that just just drop items(like mana ancient) without spawning the lootbox have the edited droprate, but things that spawn lootboxes to get the items are different. The lootbox dropchance determins that I beleive and I do not know what part of the code that is.
Closer
Newcomer
Posts: 5
Joined: January 6th, 2018, 2:16 am
Been thanked: 1 time

Re: [GUIDE] SHDR Version for TWRPG

Post by Closer »

Hello, with the updated TWRPGs the guide is very out of date and we can't find the way to allow single player, as the codes have changed.. and for those of us that don't know code, we can't figure it out anymore with your guide.. :(
Similar things go with the drop rate etc.
The chests that drop boss loot are also different codes..
Sorry to bother you, could you please update with at least the chest drop rates?
balkai
Newcomer
Posts: 12
Joined: April 15th, 2015, 8:39 am

Re: [GUIDE] SHDR Version for TWRPG

Post by balkai »

Closer wrote:Hello, with the updated TWRPGs the guide is very out of date and we can't find the way to allow single player, as the codes have changed.. and for those of us that don't know code, we can't figure it out anymore with your guide.. :(
Similar things go with the drop rate etc.
The chests that drop boss loot are also different codes..
Sorry to bother you, could you please update with at least the chest drop rates?

yeah would love an update