Space Engineers

Space Engineers

Realistic holographic sight on vanilla rifles
76 kommentarer
Titan Nya 1. juli 2023 kl. 1:08 
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  [ophavsmand] 30. juni 2023 kl. 15:03 
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. juni 2023 kl. 13:35 
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 kl. 1:32 
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  [ophavsmand] 5. mar. 2023 kl. 0:42 
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 kl. 0:00 
@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 kl. 5:28 
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 kl. 5:28 
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 kl. 0:03 
Is there a way to change the reticle color?shape? Size? Brightness? Or add additional scopes?
CallsignApollo 5. juli 2021 kl. 13:27 
@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  [ophavsmand] 26. apr. 2021 kl. 19:18 
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 kl. 6:10 
@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 kl. 15:39 
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 kl. 12:26 
@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  [ophavsmand] 15. jan. 2021 kl. 7:36 
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 kl. 21:23 
Is this broken then or?
Tom 25. sep. 2020 kl. 16:09 
Yes I do and here it is:

https://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  [ophavsmand] 25. sep. 2020 kl. 13:02 
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 kl. 8:46 
@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 kl. 8:35 
@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 kl. 17:57 
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 kl. 7:54 
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. juli 2020 kl. 13:42 
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  [ophavsmand] 8. juli 2020 kl. 10:04 
I'm not getting your error with those mods, therefore it's something in your world that is causing it.
Xann 8. juli 2020 kl. 7:41 
???
Digi  [ophavsmand] 7. juli 2020 kl. 7:14 
It didn't replicate just by adding the mods.
Just zip the world up and use google drive or something :P
Xann 6. juli 2020 kl. 15:24 
it gives this error message: %AppData%/SpaceEngineers/Storage/1736735806.sbm_BetterHoloSight/info.log

The mods for the world:

Modern Arms Weapon Kit [MAWK]
https://steamcommunity.com/sharedfiles/filedetails/?id=2056227361

Air Traffic
https://steamcommunity.com/sharedfiles/filedetails/?id=973526550

Vanilla Planet Crashed Ground Encounters
https://steamcommunity.com/sharedfiles/filedetails/?id=1144946326

Surface Occupation
https://steamcommunity.com/sharedfiles/filedetails/?id=1135484957

Invasion of Wolves
https://steamcommunity.com/sharedfiles/filedetails/?id=1163665793

Milky Way Skybox (insane resolution)
https://steamcommunity.com/sharedfiles/filedetails/?id=670718659

AQD - Quality of Life
https://steamcommunity.com/sharedfiles/filedetails/?id=1804604586

For some reason i can't upload worlds so i cant share it with you.
Digi  [ophavsmand] 6. juli 2020 kl. 8:13 
@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. juli 2020 kl. 7:26 
[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 kl. 4:56 
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 kl. 4:54 
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 kl. 8:56 
@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  [ophavsmand] 27. jan. 2020 kl. 6:16 
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 kl. 5:34 
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. okt. 2019 kl. 8:08 
Hey, I am having a problem getting this mod to work. Is anyone else having a problem.
Seabornebook 27. aug. 2019 kl. 15:06 
but its green
gar_krol 17. aug. 2019 kl. 16:05 
Pale blue dot
Cassian Vorn 17. aug. 2019 kl. 10:23 
Green dot
F0XY-ANTI F 23. juli 2019 kl. 9:27 
"red" dot
Rusted Droid 18. juli 2019 kl. 7:10 
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. maj 2019 kl. 9:40 
this need to be in vanilla S.E
Mephistos 15. maj 2019 kl. 8:34 
Great Job Man !!! Fuck that awesome !!!!
Nep-Nep 14. maj 2019 kl. 15:12 
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. maj 2019 kl. 14:37 
the comment may have also given you liver failure because i was wasted last night lol.
SEModder4  [udvikler] 12. maj 2019 kl. 13:23 
NICE Digi!
Razed! 12. maj 2019 kl. 7:34 
cool
In a Haze 12. maj 2019 kl. 3:55 
It gave me testicular cancer...
RytagB 12. maj 2019 kl. 2:27 
that comment gave me life @ C R Y T I S
konstantynopolitaneczka 12. maj 2019 kl. 1:21 
lol
C R Y T I S 12. maj 2019 kl. 1:00 
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: