• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

BlzS2FourCC undeclared

Level 8
Joined
Aug 5, 2014
Messages
194
Hello!

I have problem when i use BlzS2FourCC, even if it used via GUI function, editor reference this line with error: "Undeclared function BlzS2FourCC".

How to fix this problem? Im currently using pre reforged 1.31 version.

Thank you!
 
Level 24
Joined
Jun 26, 2020
Messages
1,853
Basically Blizzard being Blizzard, the function was removed from the common.j but not from GUI.
If you want to use it in Jass, better import this library: [Lua][vJass] Ascii and use the function S2A, if you still wanna use it in GUI, so also add this script:
JASS:
function BlzS2FourCC takes string s returns integer
    return S2A(s)
endfunction
In case of Lua, just use the function FourCC and add this:
Lua:
BlzS2FourCC = FourCC
 
Last edited:
Level 8
Joined
Aug 5, 2014
Messages
194
Basically Blizzard being Blizzard, the function was removed from the common.j but not from GUI.
If you want to use it in Jass, better import this library: [Lua][vJass] Ascii and use the function S2A, if you still wanna use it in GUI, so also add this script:
JASS:
function BlzS2FourCC takes string s returns integer
    return S2A(s)
endfunction
In case of Lua, just use the function FourCC and add this:
Lua:
BlzS2FourCC = FourCC

Thank you! I cant head around why it was removed from jass though.
 
Top