need some jass help (dota war3map.j related)

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

feelingshehides
Member
Posts: 58
Joined: January 3rd, 2008, 10:24 am

need some jass help (dota war3map.j related)

Post by feelingshehides »

To make it short, the old n'aix hero still exists in the latest dota map.. So what i did was, edit it.. Change its models, skills, name, etc. which i did with the help of george of course. So his name is now Saurfang, the problem is the map still thinks its n'aix not Saurfang..

When selecting him in tavern, its all correct, names and model..,etc. but when i try chatting.. it would show when chatting:

feelingshehides(n'aix): testing bla2
not
feelingshehdes(Saurfang): testing bla2

and the score board icon shows n'aix icon not the icon i chose. Even thou the one in the Tavern when you choose him is correct and the upper left Icon is also correct..

so i talked with george, we both think its .j problem

So i check it out:

1429221443 - U00C (new naix)
1429221431 - U007 (old naix, my hero now)

i found out which line changes the name..

i found out the new n'aix is here also

set O1O1OO[72]=1429221443
set O1O10O[72]="N'aix"
set O10IOO[72]="ReplaceableTextures\\CommandButtons\\BTNGhoul.blp"
call I1110O(O1O1OO[72],"victory")
call I11I0O(O1O1OO[72],1.5)

and so on.. all the heroes.. but i can't seem to find 1429221431(old naix) so this is the last lines:

set O1O1OO[94]=1211117653
set O1O10O[94]="Invoker"
set O10IOO[94]="ReplaceableTextures\\CommandButtons\\BTNHeroBloodElfPrince.blp"
call I1110O(O1O1OO[94],"spell")
call I11I0O(O1O1OO[94],1.25)
set O10O0O=94

so i added and edited:

set O1O1OO[95]=1429221431
set O1O10O[95]="Saurfang"
set O10IOO[95]="ReplaceableTextures\\CommandButtons\\BTNHeroBloodElfPrince.blp"
call I1110O(O1O1OO[95],"spell")
call I11I0O(O1O1OO[95],1.25)
set O10O0O=95

i run the map.. same results, map still think its n'aix not Saurfang.. when i chat it still shows feelingshehides(n'aix) not feelingshehides(Saurfang) also i use the same .blp with invoker for temp.

no idea now lol
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: need some jass help (dota war3map.j related)

Post by Aero »

First. it's absolutely a .j problem...but...

a) What are you asking specifically...?
b) The code you posted is not helpful.

I understand what you're trying to do but you either need to post A LOT more of the .j script or just the damn .j script itself.
In fact, having the map would be even better.

What I suggest is searching for "call SetPlayerName(..." to see exactly where your name is being set and then backtrack to where it got the name from.
Clearly the game is detecting some unit property of "Saurfang" that it recognizes as "N'aix" and you need to find out and correct that identifier.
feelingshehides
Member
Posts: 58
Joined: January 3rd, 2008, 10:24 am

Re: need some jass help (dota war3map.j related)

Post by feelingshehides »

my fault, sorry.. i forgot to attach the .j file, i was planning to copy+paste lots of the code here but it would be too long.. So i just made it short and quick, i assumed some people already have the dota war3map.j

anyway i just attached the .j file, if you wer interested in looking at it.

if you need the map i can pm you

I'll try to do what you said, i suck at jass x_x

Thanks
You do not have the required permissions to view the files attached to this post.
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: need some jass help (dota war3map.j related)

Post by Aero »

Took my advice and it took 2 minutes to find the problem.
function I1IIOO takes unit u returns string
if u==null then
return"No Hero"
endif
return O1O10O[GetUnitPointValue(u)]
endfunction
set O1O10O[95]="Saurfang"

Just make sure the "Stats - Point Value" field of Saurfang matches this number: 95 (Instead of the value that matches N'aix --> 72 or w/e it is)
feelingshehides
Member
Posts: 58
Joined: January 3rd, 2008, 10:24 am

Re: need some jass help (dota war3map.j related)

Post by feelingshehides »

Aero wrote:Took my advice and it took 2 minutes to find the problem.
function I1IIOO takes unit u returns string
if u==null then
return"No Hero"
endif
return O1O10O[GetUnitPointValue(u)]
endfunction
set O1O10O[95]="Saurfang"

Just make sure the "Stats - Point Value" field of Saurfang matches this number: 95 (Instead of the value that matches N'aix --> 72 or w/e it is)
Thanks so much for helping, hmm but it didn't seem to work its still causing the same problem.. if not i may have edited the wrong thing.

i changed it to this:
set O1O1OO[95]=1429221431
set O1O10O[95]="Saurfang"
set O10IOO[95]="ReplaceableTextures\\CommandButtons\\BTNHeroBloodElfPrince.blp"
call I1110O(O1O1OO[95],"spell")
call I11I0O(O1O1OO[95],1.25)
Sorry but what do you mean by "Stats - Point Value" =o sorry i really suck at jass :(

maybe thats why it didn't work ? =o
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: need some jass help (dota war3map.j related)

Post by Aero »

Stats - Point Value is not JASS at all...

GO to Object Editor...

Select your Unit (Saurfang)

And change the property: Stats - Point Value ...
feelingshehides
Member
Posts: 58
Joined: January 3rd, 2008, 10:24 am

Re: need some jass help (dota war3map.j related)

Post by feelingshehides »

Thank you so much! it works now..

I couldn't use object editor on this map thou, had to edit it in unitdata.slk in units folder!

anyway please read pm, thankie again!
feelingshehides
Member
Posts: 58
Joined: January 3rd, 2008, 10:24 am

Re: need some jass help (dota war3map.j related)

Post by feelingshehides »

Bumping, i didn't want to make another thread, but i found another problem, not really sure if its jass or not, As you all know i have edited the old N'aix and changed it to my own hero, from changes and all i finally decided to name it Devourer.. Normally when you have chosen a hero already you can't see anymore heroes in the tavern, but when i choose for example Omniknight, then i click back on the Tavern, i see Devourer still.. I tried everything in fixing this problem but i'm stuck.. maybe you can help..

Everything in the units folder seems in order thou.

Image
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: need some jass help (dota war3map.j related)

Post by Aero »

Code: Select all

function II1O0O takes player III01O returns nothing
local integer II1OIO=O1O1IO
local integer II1O1O=O1O11O           
loop
exitwhen II1OIO>II1O1O
call SetPlayerTechMaxAllowed(III01O,O1O1OO[II1OIO],0)
set II1OIO=II1OIO+1
endloop
set II1OIO=O10OOO               
set II1O1O=O10O0O
loop
exitwhen II1OIO>II1O1O
call SetPlayerTechMaxAllowed(III01O,O1O1OO[II1OIO],0)
set II1OIO=II1OIO+1
endloop
endfunction
I've only ever played Dota two or three times but if I had to guess what your problem is, I would guess it's this piece of code.
Now, what this piece of code does, is it loops through the integer array "O1O1OO" (Contains the rawcode ID of the heros) and disables the training/construction of the heros (Thus they wont appear in the taverns).

Now,

set O1O1OO[95]=1429221431 (Assuming that Devourer used to be N'aix and his Point Value is still 95, just make sure you do the following)
set O1O1OO[94]=1211117653
set O1O10O[94]="Invoker"
set O10IOO[94]="ReplaceableTextures\\CommandButtons\\BTNHeroBloodElfPrince.blp"
call I1110O(O1O1OO[94],"spell")
call I11I0O(O1O1OO[94],1.25)
set O10O0O=94
At the bottom of the Hero Setup where you added your hero, make sure that the variable in red is equal to the point value of the last hero in the list (95 from what I understand). AND, make sure that the rawcode ID (In cyan) is the correct rawcode ID.