Space Engineers

Space Engineers

Realistic holographic sight on vanilla rifles
76 Comments
Titan Nya 1 Jul, 2023 @ 1:08am 
Wow... best explanation ever xD
Well as long as it's not something you can do and it's a Keen problem there is nothing I can do to help :p Well I could disable all the mods and plugin and play pure vanilla but what's the point if I can't try out my idea that I got from last update.

Thx for the reply though you are one of the few mod creator I've followed so most of your work is just great!
Digi  [author] 30 Jun, 2023 @ 3:03pm 
This issue is from the first error, the ones at the end are usually side effects and in this case it's very much a side effect.
You should still have the log file, find the first exception/stacktrace, or post the log in keen's #modding-programming discord channel if you need help narrowing it down.

The problem you saw was more of a warning sign of something going really wrong.
It's always best to fully restart game after getting a mid-loading error because mods don't properly get unloaded (this is reported to keen for a long while).

If this logger wouldn't have crashed, you would instead load into a world with event hooks from a previous world on different instances of mod scripts, likely causing errors on mods that otherwise work fine, sending you and their modders on wild goose chases xD
Titan Nya 29 Jun, 2023 @ 1:35pm 
Well... Got a few crashes while loading a save having the game log basically tell me it can't load this mod log because it is used in another process and the only solution is to restart the game (not the biggest deal but well...)
Goatroach 5 Mar, 2023 @ 1:32am 
Ah, cool stuff. Didn't know that about changing them IRL.
I'm still a fairly new shooter, so by no means an authority on the subject, and prefer irons over RDS as RDS don't play well with my astigmatism. I gotta try out those holographic sights, IRL. Quite different from RDS, from what I'm told.

Shame you can't simply make a key bind to cycle the reticles.
Digi  [author] 5 Mar, 2023 @ 12:42am 
An attachment system is possible, it of course requires modifying the model to strip all the parts that would be interchangeable, like the holo sight and such, then be added back as indidual parented entities (similar to the magazine but selectively spawned by code instead of by the model)... it is quite some work but certainly not going to happen in this mod regardless :P

As for the reticle, it is rendered with code (no longer part of the model) which means I can color and resize it whatever, and change its shape too with new textures.
The main issue is that I don't have a nice way for user to cycle them, IRL you'd press buttons on the sight, but here... I dunno. Chat commands are not an option because I don't like'em xD
Reign 5 Mar, 2023 @ 12:00am 
@Goatroach, there are many red dot and holo sights that let you change the reticle display, even the cheap ones.

@Bi0HazardXIII, it doesn't work that like and would take a massive refactoring effort of the base game to even consider making that a reality. The weapons are items, they are not modular - the reticle is defined within the rifle item. As far as the game is concerned, there are no parts to that rifle, just like a metal plate. It's why you see mods make weapon variants with different attachments; for a modder, it just isn't possible.
Goatroach 6 Dec, 2022 @ 5:28am 
Part 2:
I haven't personally seen any optics that let you change the size of the reticle IRL (FFP optics not withstanding), as most reticles and dots are actually meticulously pre-sized to correspond with minute of angle (MOA), a measuring system pretty much every shooter has heard of, and probably used at some point. Your typical red dot is 1 MOA, meaning the dot overlaying a target at 100 yards (not meters), will be equal to 1 inch on the target from the shooter's perspective. This is easy to see IRL, but not in gaming, so most developers use over-sized reticles compared to real life. Since SE doesn't get into the ballistic simulation like Arma 3 (which you can actually make use of MOA calculations), MOA is not really an issue, so it would make sense to have the option to adjust reticle size for display resolution purposes.

As for what you've already accomplished, I'm impressed! Keep up the superb work, Digi!
Goatroach 6 Dec, 2022 @ 5:28am 
Part 1:
Bi0HazardXIII brings up a good request.
I haven't personally used a holo sight IRL, but I do have some high quality RDS optics IRL, and many have multiple preset brightness, and typically offer both red and green. For those unfamiliar with how illuminated optics work, you want a color that contrasts well against the background, and is just bright enough to be easily picked up. Too bright, and it obscures your view (a problem I often have in video games vs real life).

Having the ability to change colors and brightness would be fantastic in SE. Red for lush Earthlike environments, and green for desert planets like Mars and Pertam (I live in a desert IRL, and prefer green over red for this reason).
Bi0HazardXIII 16 Dec, 2021 @ 12:03am 
Is there a way to change the reticle color?shape? Size? Brightness? Or add additional scopes?
CallsignApollo 5 Jul, 2021 @ 1:27pm 
@Digi the non scoped launcher likely works the same way as an aircraft HUD, so basically very similar to the other holographics, but i would say leave the scoped vairant as-is since, well, its a scope :steamthumbsup:
Digi  [author] 26 Apr, 2021 @ 7:18pm 
Updated models to have the detachable magazine and added elite pistol too.

I've no idea what to do for the launchers xD I've not seen anything in reality for that glass panel targetting thing, and the scope one is fine, it's not so obviously painted-on as the rifles/pistol were.
OXxzyDoOM 23 Apr, 2021 @ 6:10am 
@Dalten Well almost, since the model is changed the new magazines don't show up on the weapons and on the reloading the engineer grabs a invisible magazine.
So they need a bit of work too.
Dalten 22 Apr, 2021 @ 3:39pm 
i can confirm this mod still works in 1.198.024 on the rifles formerly known as elite, precision and rapid-fire :)
are there any changes planned for the new rocket launchers?
Tom 22 Jan, 2021 @ 12:26pm 
@Digi not surprised. I wouldn't say this Mod is broken at all. The game has it's fun little technical issues that need to be worked sometimes. Adding a lot of mods (at least a lot in my opinion) do compound the issue. I would recommend working with this one if you can for sure because it really does add to gun play in this game.
Digi  [author] 15 Jan, 2021 @ 7:36am 
Seems that error is somewhat common and related to failing to download mods, nothing I can do about it since it's in the game code for loading mods, just retry until it works =)
UltimateIndy 14 Jan, 2021 @ 9:23pm 
Is this broken then or?
Tom 25 Sep, 2020 @ 4:09pm 
Yes I do and here it is:

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2239107077

It was more so that it would load and then encounter an error and then shutdown. This is the line that stands out to me at least. You might be able to make more sense of this them me, I am still fairly new to the game:

2020-09-25 07:37:33.660 - Thread: 1 -> Exception while loading world: Value cannot be null.
Parameter name: path1
2020-09-25 07:37:33.661 - Thread: 1 -> at System.IO.Path.Combine(String path1, String path2)
at VRage.Game.MyModContext.Init(ModItem modItem)
at Sandbox.Game.World.MyScriptManager.LoadData()
at Sandbox.Game.World.MySession.PrepareBaseSession(MyObjectBuilder_Checkpoint checkpoint, MyObjectBuilder_Sector sector)
at Sandbox.Game.World.MySession.Load(String sessionPath, MyObjectBuilder_Checkpoint checkpoint, UInt64 checkpointSizeInBytes, Boolean saveLastStates, Boolean allowXml)
at Sandbox.MySandboxGame.InitQuickLaunch()
Digi  [author] 25 Sep, 2020 @ 1:02pm 
Do you have errors/crash or does it freeze?
If you still have the world that caused the issue, can you upload it?
Tom 25 Sep, 2020 @ 8:46am 
@Digi @Xann SO it looks as though this mod was the issue (sadly). As a sanity check I removed this mod only and added Surface Occupation back in. The server was able to fully start with no issues. There is some odd conflict between this mod and the Surface Occupation mod.

TO NOTE: This issue started on my server only a few days ago. I was notified by one of my users that they had an issue with spawning the night of the 22nd and when I tried to join on the 23rd the server had not recovered from its nightly reboot and update cycle.
Tom 25 Sep, 2020 @ 8:35am 
@Xann I was having the same issue with my dedicated server not starting. I did a compare to what mods you had and what I had the only ones that were the same were Air Traffic and Surface Occupation. Removing Surface Occupation fixed the issue.
Origin_Alpha_43 18 Sep, 2020 @ 5:57pm 
weirdly enough i have the same error as Xann
and i have none of the mods he have installed in his world, nor the Better Holographic sight mod
Farro 15 Sep, 2020 @ 7:54am 
This is super neat but I notice that the sight doesn't line up with the shots, the bullets go a bit above the crosshair. I was trying to shoot some interior turrets and actually destroyed the ceiling block where the turret was attached to.
Xann 9 Jul, 2020 @ 1:42pm 
hopefully the error will go away once i can publish the world, it is going to be a crash survival spawn with a small story behind it.
Digi  [author] 8 Jul, 2020 @ 10:04am 
I'm not getting your error with those mods, therefore it's something in your world that is causing it.
Xann 8 Jul, 2020 @ 7:41am 
???
Digi  [author] 7 Jul, 2020 @ 7:14am 
It didn't replicate just by adding the mods.
Just zip the world up and use google drive or something :P
Xann 6 Jul, 2020 @ 3:24pm 
it gives this error message: %AppData%/SpaceEngineers/Storage/1736735806.sbm_BetterHoloSight/info.log

The mods for the world:

Modern Arms Weapon Kit [MAWK]
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2056227361

Air Traffic
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=973526550

Vanilla Planet Crashed Ground Encounters
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1144946326

Surface Occupation
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1135484957

Invasion of Wolves
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1163665793

Milky Way Skybox (insane resolution)
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=670718659

AQD - Quality of Life
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1804604586

For some reason i can't upload worlds so i cant share it with you.
Digi  [author] 6 Jul, 2020 @ 8:13am 
@Xann
Context necessary because there's nothing obvious in the code to throw that error.
Was some specific floating object spawned?
if you load that world again does it happen? If so can you upload it somewhere and link it.
Xann 6 Jul, 2020 @ 7:26am 
[22:40:35] Initialized
GameMode=Creative
OnlineMode=OFFLINE
Server=True
DS=False
Defined=STABLE,
[22:40:49] ERROR: System.NullReferenceException: Object reference not set to an instance of an object.
at Digi.BetterHoloSight.BetterHoloSightMod.EntityAdded(IMyEntity ent)
[22:40:49] ERROR: System.NullReferenceException: Object reference not set to an instance of an object.
at Digi.BetterHoloSight.BetterHoloSightMod.EntityAdded(IMyEntity ent)
[22:40:49] ERROR: System.NullReferenceException: Object reference not set to an instance of an object.
at Digi.BetterHoloSight.BetterHoloSightMod.EntityAdded(IMyEntity ent)
[23:55:39] Unloaded.
hangar-8 22 Mar, 2020 @ 4:56am 
Forgot to mention, the graphic has been moved upwards in the DDS tile, so it's simple a matter of dropping it in over the original (no code was harmed in the posting of that file ;) )
hangar-8 22 Mar, 2020 @ 4:54am 
Another of my must have mods, thank you

As far as the reticle and accuracy goes, you could use mine (adjusted for accuracy). I also edited the code a bit to change colours and make both versions the same size... but I'm not posting that, just the reticle.dds.

Preview: http://ei8ht.net/Image_hosting/crosshair.png
DDS file: http://ei8ht.net/Image_hosting/Reticle.dds

(hosted on my own site/server, if yer curious about the address)
TARGET 27 Jan, 2020 @ 8:56am 
@Digi

Did some testing with and without your mod. Basic rifle ironsights are reasonably close to dead on, maybe a touch high but scatter will handle it. Vanilla sights on precision and elite suffer from the same problem, impacts at the top of the ring. Shots land roughly 2/3 up from the dot to the ring on your elite sight due to it's size increase. Shots from your precision sight hit the top of the ring.

Another thing of note is that it seems the crosshair sits lower in the window than memory serves. Like an offset is wrong in the game coding.

An idea for a potential workaround. Instead of a circle and dot, use an inverted V. Since the point of impact seems to be the top of the ring, the point of the V should land at the point of impact on the sights. No idea if that's possible tho.
Digi  [author] 27 Jan, 2020 @ 6:16am 
I think that's an issue with the game shooting crooked and was hoping they'd fix it eventually... try with the regular crosshair too for comparison.
TARGET 27 Jan, 2020 @ 5:34am 
aimpoint is way off on the precision rifle. hits land at the top of the red circle if you use the center dot.
MX Duke 11 Oct, 2019 @ 8:08am 
Hey, I am having a problem getting this mod to work. Is anyone else having a problem.
Seabornebook 27 Aug, 2019 @ 3:06pm 
but its green
gar_krol 17 Aug, 2019 @ 4:05pm 
Pale blue dot
Zechariah | זְכַרְיָה 17 Aug, 2019 @ 10:23am 
Green dot
F0XY-ANTI F 23 Jul, 2019 @ 9:27am 
"red" dot
Rusted Droid 18 Jul, 2019 @ 7:10am 
Any plan of adding laser to the rifle? Also hand_held Laser Range Finder that give you GPS position of aimed target will be interesting mod.
Tuna-Bandit-Kelet 15 May, 2019 @ 9:40am 
this need to be in vanilla S.E
Mephistos 15 May, 2019 @ 8:34am 
Great Job Man !!! Fuck that awesome !!!!
Nep-Nep 14 May, 2019 @ 3:12pm 
I haven't even used this mod once and I already love the ever living heck out of it. Thank you for creating a masterpiece like this!
C R Y T I S 12 May, 2019 @ 2:37pm 
the comment may have also given you liver failure because i was wasted last night lol.
SEModder4  [developer] 12 May, 2019 @ 1:23pm 
NICE Digi!
Razed! 12 May, 2019 @ 7:34am 
cool
In a Haze 12 May, 2019 @ 3:55am 
It gave me testicular cancer...
RytagB 12 May, 2019 @ 2:27am 
that comment gave me life @ C R Y T I S
konstantynopolitaneczka 12 May, 2019 @ 1:21am 
lol
C R Y T I S 12 May, 2019 @ 1:00am 
omg.... OMG.... AWMAFACKINGGAAAAAAD!!!!!!! ITS >.... OKI JUST DOWNLOADED THIS GAME AND ITS 3 IN THE MORNING... I FUCKING LIVE FOR THIS SHIT!! THE GREEN MOVES!!!!!! ITS BEEN 2 FAKING YEARS!!! IM BACK BITCHES!!!


an now you're telling me.... you sir... ma... my my how the mods haaave chaaaaanged... i am going to sleep well tonight... Good night America! :steamhappy: