• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!
Ender
Reaction score
16

Profile posts Latest activity Postings Experience Resources About

  • Hello Ender, how have you been??

    PS: want to take a look on the Tech Tree Contest #10 Discussion?
    We could participate on another contest many years after TechTreeC#6.
    I'm curious, where did you learn about the destructible tree texture glitch.

    Did you discover it yourself or from XGM or chaos realm or wc3c.net from toadcop?
    oh ive been using it to make some dynamic interface thing although i have to say some one discovered this method long before you did or it just seems that way i dunno
    well that makes sence haha im not too good at modeling ty for the help ill rep you when i find more posts
    hey i am using http://www.hiveworkshop.com/forums/spells-569/complicated-texture-switcher-222228/?prev=search%3Dcomplicated%26d%3Dlist%26r%3D20 but i cant make it work on any of my models it only works on your footman i need this model http://www.hiveworkshop.com/forums/pastebin_data/ws2pw8/_files/IconBase.mdx
    to be able to work with that system but i cant make it work i tried modifying the materials and stuff but still it doesent work so i thought maybe you could help me out and do it correct since i cant figure it out i think there is something wrong with the model so i tried using this on other models but still nothing happened the textures did not change it only works on your footman so if ur not too busy could u fix it for me :ogre_love:
    Ok, I tried to follow your explaination.

    This causes compile error - Custom script: set udg_Integer = 'hxxx' I cannot save map
    I need a solution asap. Cannot save map with these custom scripts. What's wrong?


    So when I do custom script correct would this work?

    Set MissileUnitType[5] = Sabretooth Heavy Missile (Space)
    Custom script: set udg_Integer = 'h029' (compile error)
    Hashtable - Save 50.00 as 0 of Temp_Integer in HashDamageData
    Hashtable - Save 1.00 as 1 of Temp_Integer in HashDamageData
    Hashtable - Save 76 as 2 of Temp_Integer in HashDamageData
    Hashtable - Save 20 as 3 of Temp_Integer in HashDamageData
    Hashtable - Save 2500 as 4 of Temp_Integer in HashDamageData
    Hashtable - Save 4000 as 5 of Temp_Integer in HashDamageData
    Hashtable - Save 1500.00 as 7 of Temp_Integer in HashDamageData
    Hashtable - Save 25.00 as 8 of Temp_Integer in HashDamageData

    Edit
    so I spent entire day struggling to make it work. Not sure its working yet...

    Ended up with this

    Set MissileUnitType[1] = Piranha Light Missile (Space)
    Set TempString = (String(MissileUnitType[1]))
    Custom script: set udg_Temp_Integer = String2Id(udg_TempString)
    String2Id is not a standard wc3 function and is an ascii system

    function Char2Id takes string c returns integer
    local integer i = 0
    local string abc = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
    local string t

    loop
    set t = SubString(abc,i,i + 1)
    exitwhen t == null or t == c
    set i = i + 1
    endloop
    if i < 10 then
    return i + 48
    elseif i < 36 then
    return i + 65 - 10
    endif
    return i + 97 - 36
    endfunction

    function String2Id takes string s returns integer
    return ((Char2Id(SubString(s,0,1)) * 256 + Char2Id(SubString(s,1,2))) * 256 + Char2Id(SubString(s,2,3))) * 256 + Char2Id(SubString(s,3,4))
    endfunctionEnds up with a number which is actually very long like 8-10 digits. Not sure if hashtable has a limit like arrays.

    Or I'm doing this wrong? I'm going to bed this is pain to make it work. Somehow editor saved without error, but I doubt it works I do not completely understand it yet.
    Sorry to bother you yet again. I'm very new to hashtable and JASS, so I'm a bit lost setting up the tables.

    Question 1.

    Can I setup like this?
    Init
    Set MissileUnitType[0] = Piranha Light Missile (Space)
    Hashtable - Save 15.00 as 0 of (Key (Units of type MissileUnitType[0])) in HashDamageData
    Hashtable - Save 1.60 as 1 of (Key (Units of type MissileUnitType[0])) in HashDamageData
    etc

    Missile Impact
    Unit - missile hits tha cruiser without shield!!
    Conditions
    What kind of missile??
    (Unit-type of (Triggering unit)) Equal to MissileUnitType[(Key (Units of type (Unit-type of (Triggering unit))))]
    Actions
    Unit - Cruiser takes heavy damage!!
    Set Cruiser1Hull = (Cruiser1Hull - (Load 1 of (Key (Units of type MissileUnitType[(Key (Units of type (Unit-type of (Triggering unit))))])) from HashDamageData))

    Does this work? Or does the condition block it from happening?? I can use a different condition since all missiles are in a unit-group
    Question 2.

    If I should load a units rawcodes as you suggested, how does the loading work then?

    My mind is a bit fused I don't see it for me how a getting the value would occur. Trigger responds to triggering unit dies, then loading these data based on units rawcode integer. I need an example from init setup hashtable then save it into key value and then what happens on unit dies event. I have to much limited insight to continue from your one custom script example.
    I cannot recreate the feature you suggested in this thread.

    Can you post an example map. I'm not sure why my WE is being difficult and crashes.

    I will then make it custom code if it still crashes and use that as a base. Rep+ if you would do that and make a minor map with just that function with Unit-Type.
    Oh no Im not a master, it's just my own rating coz I've beaten many 2000 palyers in my place before...Ima play Nf6 for development...
    hey I heard you knew chess, what's your rating?, me I'm 1900+ in blitz and 2100+ in long game, my move is d5 btw :p...
    Well. I am on the path of finding the perfect language, but none exists. I have been coding Python for a few years and it's quite good, but there are some weird things. Things that you of course get used to, but are confusing for the beginner.
    Python is object oriented. Dictionaries, lists are objects. And with object orientation, you sort of expect things to do with the object to be methods on that object, for example the size or length, but in python you do len(listObject) and not listObject.length. In other situations they use methods on objects, for example in the libraries you can import. Stuff like this makes it less consistent and sort of messy in my head.
    Aside from that, I think Python is pretty cool. A huge improvement over my goto language PHP, heh.
    I have also been coding a lot of JavaScript with Node.JS. It is also pretty cool.
    Where do you set how far the plane runs out before coming back for another attack run?
    Oh, it's nothing, now you only own me around 100$ ^^
    (It's sarcasm, just in case you took it seriously)
    Hahah, well now we got a triple tie in the poll. If at the end of the month the tie remains we shall do another one with just those 3 options.

    Also, the contest most probably start in July, yet in August I will return to classes. So even if the contest is delayed I guess we won't be working together in a while...

    PS: I am learning to model, check my model WIP, pls give me your opinion about what you think of that robot. It only uses ingame textures but it final file size will be around 125kb, all with custom animations and mesh.
    Greetings,
    Unfortunately the idea to gather all entries for the Techtree contests #6 failed. Now the next techtree contest is close to begin (within this month), and I would invite you to vote in the poll that is open in the discussion thread.

    Also is probable that the techtree contest will be optionally paired, what do you think if you enter the contest with me??
    I am learning how to model and also I have a rely awesome idea that works with almost half of the themes in the poll (except nomad)
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
Top