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
need some jass help (dota war3map.j related)
Moderator: Cheaters
-
- Member
- Posts: 58
- Joined: January 3rd, 2008, 10:24 am
-
- 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)
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.
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.
-
- Member
- Posts: 58
- Joined: January 3rd, 2008, 10:24 am
Re: need some jass help (dota war3map.j related)
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
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.
-
- 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)
Took my advice and it took 2 minutes to find the problem.
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)
set O1O10O[95]="Saurfang"function I1IIOO takes unit u returns string
if u==null then
return"No Hero"
endif
return O1O10O[GetUnitPointValue(u)]
endfunction
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)
-
- Member
- Posts: 58
- Joined: January 3rd, 2008, 10:24 am
Re: need some jass help (dota war3map.j related)
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.Aero wrote:Took my advice and it took 2 minutes to find the problem.
set O1O10O[95]="Saurfang"function I1IIOO takes unit u returns string
if u==null then
return"No Hero"
endif
return O1O10O[GetUnitPointValue(u)]
endfunction
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)
i changed it to this:
Sorry but what do you mean by "Stats - Point Value" =o sorry i really suck at jassset 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)

maybe thats why it didn't work ? =o
-
- 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)
Stats - Point Value is not JASS at all...
GO to Object Editor...
Select your Unit (Saurfang)
And change the property: Stats - Point Value ...
GO to Object Editor...
Select your Unit (Saurfang)
And change the property: Stats - Point Value ...
-
- Member
- Posts: 58
- Joined: January 3rd, 2008, 10:24 am
Re: need some jass help (dota war3map.j related)
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!
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!
-
- Member
- Posts: 58
- Joined: January 3rd, 2008, 10:24 am
Re: need some jass help (dota war3map.j related)
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.

Everything in the units folder seems in order thou.

-
- 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)
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
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)
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.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