HUD map/radar
-
- Masterful
- Posts: 660
- Joined: Tue Feb 12, 2008 2:47 pm
- Personal rank: Happy fool :-)
HUD map/radar
Have no fear, I'm retired from this game and have zero interest in returning. However, having that said, I handed over one of my WIP projects to an old friend from the long gone Danish sniper clan, who wanted to make a comeback for their server (zark sniper style). I've been asked to assist him in finishing my unfinished work, and I can't turn him down due to personal feelings.
He has little to medium knowledge about Uengine and Uscript, so he is stepping on very slippery ground. He wants to change my BR mod (WIP) into a zark sniper stylish mod, and have a map drawn on the HUD like in "Fortnite" where you can see where on the map your are. My mod was a BR mod, but his will NOT be a Battle Royale mod if that's what you hope for.
Now, I know this has been debated back in the days, but at the point where I left, noone ever got arround to figure aout how to "hack" the UE1 to be able to do this. So, my question is very simple, has anyone made such mod after I left? Or do I have to re-remember my Uscript knowledge to make this for him?
I'd appriciate any feedback you have on this as I fear my skillset is too weak at this point
He has little to medium knowledge about Uengine and Uscript, so he is stepping on very slippery ground. He wants to change my BR mod (WIP) into a zark sniper stylish mod, and have a map drawn on the HUD like in "Fortnite" where you can see where on the map your are. My mod was a BR mod, but his will NOT be a Battle Royale mod if that's what you hope for.
Now, I know this has been debated back in the days, but at the point where I left, noone ever got arround to figure aout how to "hack" the UE1 to be able to do this. So, my question is very simple, has anyone made such mod after I left? Or do I have to re-remember my Uscript knowledge to make this for him?
I'd appriciate any feedback you have on this as I fear my skillset is too weak at this point
Retired.
-
- Godlike
- Posts: 10214
- Joined: Thu Jun 30, 2011 8:12 pm
- Personal rank: God of Fudge
- Location: Palo Alto, CA
Re: HUD map/radar
I only know of the radar mutator...
...but I can't find a download for it right now.
· http://unreal-games.livejournal.com/
· https://unrealarchive.org/authors/evilgrins.html
· https://www.facebook.com/groups/UTcorps
· https://unrealarchive.org/authors/evilgrins.html
· https://www.facebook.com/groups/UTcorps
Smilies · https://ut99.org/viewtopic.php?f=8&t=13758medor wrote:Replace Skaarj with EvilGrins
-
- Godlike
- Posts: 3746
- Joined: Sat Sep 12, 2015 8:46 pm
Re: HUD map/radar
I can't think of a mutator that draws the map on the HUD though there are several different radar mutators - R/radar_c367b089.html; radar_0f01cdc2.html; and movementlocator-20_7977fa73.html.
-
- Masterful
- Posts: 660
- Joined: Tue Feb 12, 2008 2:47 pm
- Personal rank: Happy fool :-)
Re: HUD map/radar
Super, No downloads needed, I got good inspiration and I think I know how to make what he wants, thank you
Retired.
-
- Godlike
- Posts: 1204
- Joined: Mon Aug 31, 2015 10:31 pm
Re: HUD map/radar
UTRoyale lets you see it by sending the command "debugToggleRadarMap" in console. (You need bDebug set to True in UTRoyale gametype)
Some of the stuff I created:
Mods: VisualStreamPlayer, TeamColorOverlay, FunkyMoves, CommandSystem, FunkyPointer, AdvancedMutator, CommandEvent, ParticleSystem, LifeSucks
Gametypes: UTRoyale, UnrealRace
Hacks : Create/Write files with UScript, Read files with UScript, Running files with UScript
Maps: CTF-(POF)-Escher_Fix, CTF-(NotYet)HyperBlast, DM-(NotYet)Condemned, CTF-StalwartXS, UR-Hyperblast, DM-3072-ItalyKinda, DOM-NRMC-Cathode, CTF-TAMC-UnderPressure
Concepts: RabbitHole, Builder gun, HeatMap, Playable arcade cabinet, Stalwartception, Non Conventional Weapons, MainFrame
Memes: Meme#1, Meme#2
Mods: VisualStreamPlayer, TeamColorOverlay, FunkyMoves, CommandSystem, FunkyPointer, AdvancedMutator, CommandEvent, ParticleSystem, LifeSucks
Gametypes: UTRoyale, UnrealRace
Hacks : Create/Write files with UScript, Read files with UScript, Running files with UScript
Maps: CTF-(POF)-Escher_Fix, CTF-(NotYet)HyperBlast, DM-(NotYet)Condemned, CTF-StalwartXS, UR-Hyperblast, DM-3072-ItalyKinda, DOM-NRMC-Cathode, CTF-TAMC-UnderPressure
Concepts: RabbitHole, Builder gun, HeatMap, Playable arcade cabinet, Stalwartception, Non Conventional Weapons, MainFrame
Memes: Meme#1, Meme#2
-
- Masterful
- Posts: 660
- Joined: Tue Feb 12, 2008 2:47 pm
- Personal rank: Happy fool :-)
Re: HUD map/radar
ran into some kind of bug, wanted to add the degree symbol after the number of degrees (ascii 248 °), but when added to a text string like this: Canvas.DrawText(int(vr)$"°", False); it display it on HUD with an annoying A in front? Does anyone know what causes that and how to fix?
You do not have the required permissions to view the files attached to this post.
Retired.
-
- Adept
- Posts: 427
- Joined: Tue Feb 21, 2012 7:29 pm
Re: HUD map/radar
It is caused by Encode ANSI special characters that UT99 doesn't like to render. I read somewhere that UT99 uses Encode UTF-16.
-
- Adept
- Posts: 295
- Joined: Sun Feb 16, 2020 5:52 pm
Re: HUD map/radar
I don't know much about coding but in my limited work on websites we would sometimes hide text on a page by making it the same color as the background. Maybe if you can't get rid of it , you can hide it this way by making it "invisible"TheDane wrote: ↑Sun May 24, 2020 8:32 pm ran into some kind of bug, wanted to add the degree symbol after the number of degrees (ascii 248 °), but when added to a text string like this: Canvas.DrawText(int(vr)$"°", False); it display it on HUD with an annoying A in front? Does anyone know what causes that and how to fix?
Just a thought. Good luck.
Here is a page that might be useful to your quest.
viewtopic.php?f=7&t=2223
-
- Masterful
- Posts: 660
- Joined: Tue Feb 12, 2008 2:47 pm
- Personal rank: Happy fool :-)
Re: HUD map/radar
Found a way to hack the engine to draw degree correct on HUD, here is what I did:
Now it looks just the way I wanted it to look yehaw
Seems pointless to use the right character of a 1 character long string value right? But, as it draws a two digit character on HUD, I asumed that the engine turned the degree symbol into such value, and gladly I was right about it
Obvious, but yet.......... meh!
Code: Select all
local string degreehack;
degreehack = "°";
degreehack = Right(degreehack, 1);
Canvas.StrLen(int(vr)$degreehack, XL, YL);
Canvas.SetPos(Canvas.ClipX * 0.5 - 0.5 * XL, hight);
Canvas.DrawText(int(vr)$degreehack, False);
Seems pointless to use the right character of a 1 character long string value right? But, as it draws a two digit character on HUD, I asumed that the engine turned the degree symbol into such value, and gladly I was right about it
Obvious, but yet.......... meh!
You do not have the required permissions to view the files attached to this post.
Retired.
-
- Experienced
- Posts: 134
- Joined: Mon Nov 24, 2014 9:27 am
Re: HUD map/radar
The reason for why it shows up with that bogus character is because your source file encoding is wrong.TheDane wrote: ↑Mon May 25, 2020 8:34 pm Found a way to hack the engine to draw degree correct on HUD, here is what I did:
Now it looks just the way I wanted it to look yehawCode: Select all
local string degreehack; degreehack = "°"; degreehack = Right(degreehack, 1); Canvas.StrLen(int(vr)$degreehack, XL, YL); Canvas.SetPos(Canvas.ClipX * 0.5 - 0.5 * XL, hight); Canvas.DrawText(int(vr)$degreehack, False);
Seems pointless to use the right character of a 1 character long string value right? But, as it draws a two digit character on HUD, I asumed that the engine turned the degree symbol into such value, and gladly I was right about it
Obvious, but yet.......... meh!
Open up your source file and change the encoding to ANSI, you'll then see the bogus character in the string litteral, at which point you can delete it and recompile.
-
- Godlike
- Posts: 6438
- Joined: Sun May 09, 2010 6:15 pm
- Location: On the roof.
Re: HUD map/radar
If you have plans for malformed characters perhaps mod won't be widely used. Some of your old assets were causing only Disk Errors at people not having your code page in their systems - By example I had to format partition for getting rid of those FAT errors. Isn't more wise to use standard English chars instead of borks ?
-
- Masterful
- Posts: 660
- Joined: Tue Feb 12, 2008 2:47 pm
- Personal rank: Happy fool :-)
Re: HUD map/radar
I just double checked, the encoding already is ANSI? So, it should not be the cause of thisChris wrote: ↑Mon May 25, 2020 11:36 pm The reason for why it shows up with that bogus character is because your source file encoding is wrong.
Open up your source file and change the encoding to ANSI, you'll then see the bogus character in the string litteral, at which point you can delete it and recompile.
Please explain malformed characters? I want to draw the degrees symbol, that's not malformed in any way? About "my" mod beeing used widely, this is not my mod, if it will be running on a public or private server I don't know at the moment?sektor2111 wrote: ↑Tue May 26, 2020 6:27 am If you have plans for malformed characters perhaps mod won't be widely used. Some of your old assets were causing only Disk Errors at people not having your code page in their systems - By example I had to format partition for getting rid of those FAT errors. Isn't more wise to use standard English chars instead of borks ?
Also please explain wich of my old "assets" that are causing disk errors? I haven't got the slightest idea of what you are talking about? And what is my code page? And what FAT errors? I've never recieved any feedback about any of my mods having issues like you speak of, so please, be more specific?
The degree symbol is not English or "borks" as you say, it's a universal symbol? I opened this topic to get help adressing an issue, please, by all means, hit me with lines of code using your English charset degree symbol that works then?
Retired.
-
- Experienced
- Posts: 134
- Joined: Mon Nov 24, 2014 9:27 am
Re: HUD map/radar
It's definitely an encoding issue. I tested it on my end too. Attach your source file here and I can take a look.TheDane wrote: ↑Tue May 26, 2020 11:56 amI just double checked, the encoding already is ANSI? So, it should not be the cause of thisChris wrote: ↑Mon May 25, 2020 11:36 pm The reason for why it shows up with that bogus character is because your source file encoding is wrong.
Open up your source file and change the encoding to ANSI, you'll then see the bogus character in the string litteral, at which point you can delete it and recompile.
Please explain malformed characters? I want to draw the degrees symbol, that's not malformed in any way? About "my" mod beeing used widely, this is not my mod, if it will be running on a public or private server I don't know at the moment?sektor2111 wrote: ↑Tue May 26, 2020 6:27 am If you have plans for malformed characters perhaps mod won't be widely used. Some of your old assets were causing only Disk Errors at people not having your code page in their systems - By example I had to format partition for getting rid of those FAT errors. Isn't more wise to use standard English chars instead of borks ?
Also please explain wich of my old "assets" that are causing disk errors? I haven't got the slightest idea of what you are talking about? And what is my code page? And what FAT errors? I've never recieved any feedback about any of my mods having issues like you speak of, so please, be more specific?
The degree symbol is not English or "borks" as you say, it's a universal symbol? I opened this topic to get help adressing an issue, please, by all means, hit me with lines of code using your English charset degree symbol that works then?
-
- Godlike
- Posts: 2928
- Joined: Fri Sep 25, 2015 9:01 pm
- Location: moved without proper hashing
Re: HUD map/radar
What is a "malformed character"? If you use different code pages for example characters will look different but there is no way to determine what is the "correct" one.
I'd like to see a proof of thatsektor2111 wrote: ↑Tue May 26, 2020 6:27 amSome of your old assets were causing only Disk Errors at people not having your code page in their systems - By example I had to format partition for getting rid of those FAT errors.
Creating disk errors with UScript is not possible IMO (don't come with permanently reading/writing causes a mass storage system to fail at some time - that's normal behaviour).
"If Origin not in center it be not in center." --Buggie
-
- Godlike
- Posts: 6438
- Joined: Sun May 09, 2010 6:15 pm
- Location: On the roof.
Re: HUD map/radar
I ain't say anything about UScript, I said about resources, folders/files involved.
Proof ? Did you read my post ? I formatted partition years ago - right after his "death". I unpacked those resources with funky names, and later I was surprised that I could not move those folders/files, the rest of data on disk had no problems. I'm not sure if I have that original archive somewhere and even if I would find it I won't unpack anything again.
For your knowledge, I witnessed such errors on Machines having USA as ONLY code page and some documents were copied from elsewhere - Some errors have been returned by Scandisk, yeah exactly . And No, I'm not crazy I recall well some of lousy PC things which I witnessed.
I you want another similar craps like that, look for some Android apps using stupid names (coming from other planet maybe), copy them from phone to PC and back and do some file handling tasks - you might have some entertaining occurrences... I was about to lose my backups and since that moment I'm renaming all TRASH used as app names in common names out of "characters" and I did not see any issue anymore. And yes, Android as a brother of Linux also might do damage at this point into Win Systems - already happened. You might want to see a custom Romanian file name in Android translated into a Win machine how does it looks like - with a sort of alias code page installed as well - some Eastern Europe. When a file is saved from elsewhere into machine without that code page or another sort of naming deal, you can expect troubles if you want to move/delete that file. When you'll see such things don't say I did not warn you. If German specific stuff is well aligned between various platforms this doesn't mean that it's the same for everyone and for all countries. Already a lot of applications had patches for fixing various language issues, because YES, there are issues here.
And Yes, I'm polite and No, I'm not bullshitting.
Proof ? Did you read my post ? I formatted partition years ago - right after his "death". I unpacked those resources with funky names, and later I was surprised that I could not move those folders/files, the rest of data on disk had no problems. I'm not sure if I have that original archive somewhere and even if I would find it I won't unpack anything again.
For your knowledge, I witnessed such errors on Machines having USA as ONLY code page and some documents were copied from elsewhere - Some errors have been returned by Scandisk, yeah exactly . And No, I'm not crazy I recall well some of lousy PC things which I witnessed.
I you want another similar craps like that, look for some Android apps using stupid names (coming from other planet maybe), copy them from phone to PC and back and do some file handling tasks - you might have some entertaining occurrences... I was about to lose my backups and since that moment I'm renaming all TRASH used as app names in common names out of "characters" and I did not see any issue anymore. And yes, Android as a brother of Linux also might do damage at this point into Win Systems - already happened. You might want to see a custom Romanian file name in Android translated into a Win machine how does it looks like - with a sort of alias code page installed as well - some Eastern Europe. When a file is saved from elsewhere into machine without that code page or another sort of naming deal, you can expect troubles if you want to move/delete that file. When you'll see such things don't say I did not warn you. If German specific stuff is well aligned between various platforms this doesn't mean that it's the same for everyone and for all countries. Already a lot of applications had patches for fixing various language issues, because YES, there are issues here.
And Yes, I'm polite and No, I'm not bullshitting.