|
|
I like your hero health, but I can't play with it unless I can see the players name lol
[Silv3ri's Mods]
Please vote for this useful dropbox feature!Original version of signature image is by www,annestokes,com
ui/ui_items.package, line 1519
You really outdid yourself!
Mana Timers is awesome but i think i found a bug with ultimates:
- If you cast an ultimate you'll get a (mana-)timer, but it's totally wrong. Happens all the time that you cast an ultimate, the manatimer shows e.g. 26 sec and jumps to 1 sec as soon as it is ready.
Overall Gameplay Improvement: Implementation of several Interface Mods.
______________________________
![]()
Thanks, I'll see if I can replicate the error and then try to fix it.
Thanks, read this next part to view the new mod that makes me feel more proud than any of the others!
My new mod that I've been working on all day! View screenshots and further details in the first post. Now I just need to rest...Translate Chat[Experimental]
Download: v0.1
Requirements: Mod Options Framework, Movable Frames
This mod adds a movable button that translates the text you currently have in your chatbox (currently, only in-game) to any other language by sending the data to Google's Translate servers. Read the Todo section under Details to view more related ideas that I eventually want to implement, like, for instance, also translating chat from other players.
This script is marked as experimental because I still need to find proper hosting for my script that modifies the output of Google's Translate servers and because it has one big issue which is that if any non-standard text appears in the translation results it will not work (thus, it can only handle the Latin alphabet, but you can still see the resulting translation when opening the console and looking at the error).
[Silv3ri's Mods]
Please vote for this useful dropbox feature!Original version of signature image is by www,annestokes,com
ui/ui_items.package, line 1519
Interesting idea with the translating chat.
As for modifying encoding through php, there is a few ways:
- iconv() - if you know encoding input and output
- mb_check_encoding() - if you know output (only checks if compatible, to avoid throwing error)
- utf8_encode - ISO-8859-1(Latin-1) to UTF-8
- regex - search and replace unicode charranges - ([\300-\337])([\200-\277]) finds 2byte, ([\340-\357])([\200-\277])([\200-\277]) finds 3byte.
Hope that was helpful, thanks for the mod.
Thanks, I think that will be helpful. All I need to find out, is how to decode back to the normal symbols (using only the game's scripting) if I used any of those specific encoding schemes.
More details:
I'll test what I can achieve with some of those commands so long.
[Silv3ri's Mods]
Please vote for this useful dropbox feature!Original version of signature image is by www,annestokes,com
ui/ui_items.package, line 1519
WOW! This mods are amazing! Big thanks for doing such great job, Silv3ri!
Just wanted to stop by and say that these are some quality mods here! Your efforts are appreciated.![]()
Do you have control of the array before it gets serialized?
If yes:
$arr['translatedText'] = iconv("UTF-8", "ISO 639-1//TRANSLIT", $arr['translatedText'])
If not you need to unserialize first:
$arr = unserialize($str);
$arr['translatedText'] = iconv("UTF-8", "ISO 639-1//TRANSLIT", $arr['translatedText'])
$str = serialize($arr);
Afaik, google uses ISO 639-1. I might be wrong, but give it a shot.
Last edited by pizzabussen; 05-22-2010 at 06:51 AM.
I've only tested quickly, but still can't see the mistake. I also can't think why it would be only the ultimates, unless it has to do with the fact that they cost more mana than usual or because you had certain specific heroes. If you can remember, tell me which hero you were playing with and also, I assume it happened more than once during the same game?
Edit: BTW, The only time that the mana counters are supposed to change dramatically is when your mana regen changes.
Last edited by Silv3ri; 05-22-2010 at 02:00 PM.
[Silv3ri's Mods]
Please vote for this useful dropbox feature!Original version of signature image is by www,annestokes,com
ui/ui_items.package, line 1519
Like I said, it could be happening to other spells too but I wouldn't notice, I don't check their cooldown and once it's ready the number is unstuck. I remember the timer was stuck then jumped to 1 before the spell was ready. And yes, it happened more than once in the same game. I disabled the mod at the end of the game because of that, but I'll enable it back to try to find out how to reproduce this.
Ok did some tests in practice (with bubbles), when you die the timer stops and it start back from where it stopped, instead of the correct value, once you revived.
Thanks, I could finally replicate it. I see the variables update correctly, just not their display. Simple mistake... fixed!
Changelog
v0.1.4 - 22/05/2010 - Fixed same bug happening in MiniUI.
v0.1.3 - 22/05/2010 - Fixed small bug. Spell cooldown timers should no longer get stuck.
Last edited by Silv3ri; 05-22-2010 at 03:46 PM. Reason: v0.1.4
[Silv3ri's Mods]
Please vote for this useful dropbox feature!Original version of signature image is by www,annestokes,com
ui/ui_items.package, line 1519
Thank you!
Yes, in fact that was originally the only purpose for my script (to serialize the data from Google's servers). I've tried a lot of work-arounds for the problem and I understand it a lot better know; long explanation below.
Explanation:
I'm also going to post this at a few other places in the forums in hopes of finding some better solution. Any help from anyone will be appreciated!
Last edited by Silv3ri; 05-23-2010 at 04:26 AM.
[Silv3ri's Mods]
Please vote for this useful dropbox feature!Original version of signature image is by www,annestokes,com
ui/ui_items.package, line 1519
I was going to suggest something for the translate mod, but I see you already have it in a comment!
So how about this: When you add translating text from the chat buffer, also add an option to autodetect the language (tell google to do it) and automagically set the 'reply' language to the same.
S2 Games: Dedicated employees serving dedicated gamers. Continuous development. Never-ending improvement.
-----------------------------
Ben Pettit | Lead UIX Developer
Hey Silv3ri, can you make Mimic Login will auto update HoN when anyone clicked? Some friends need that because they are SEA and need view replays
Feeling Dangerous ?![]()
I just implemented the translation of other player's chat using your mod; was easier than expected! Thanks for that mod, and that idea is awesome, I'll definitely implement it soon!
I'm sorry, but I don't really know how to do that. What I do know, is that when the game updates all the downloaded files are stored in a folder called 'update', but after the update is applied, that folder is deleted (the game restarts, then applies). So, if you are quick enough to get the contents of the folder, you could update. Otherwise, if they could just login with someone else's account quickly, they could also auto-update (I think... not sure how it works for SEA players with Garena and stuff).
Read the How? section to understand how to use it (will still make it more user-friendly). It's still experimental, but it should work perfectly if you translate anything from English to any other language. Testing, bugs, comments and ideas are welcome!Translate Chat
Changelog
v0.2 - 23/05/2010 - Added chat textbox detection and translation of most recent in-game chat message (when pressed). Now requires Bang! Lib Chat Parser.
[Silv3ri's Mods]
Please vote for this useful dropbox feature!Original version of signature image is by www,annestokes,com
ui/ui_items.package, line 1519
Straight Hero Traits is excellent. Should be default IMO.
No. You're wrong..