Page 1 of 2 12 LastLast
Results 1 to 50 of 81

Object Blocking LOS System - Updated 17 Dec 2009

  1. #1
    Member Cozmo's Avatar
    Join Date
    Oct 2006
    Location
    Bristol, England

    Object Blocking LOS System - Updated 17 Dec 2009

    ObjectBlock-LosMod.rar Updated, I messed up the module file


    I am very excited because I think I have cracked Object Blocking LOS.

    As a break from tradition I will show the video first.
    NOTE: I suggest full screen



    Ok, now you have watched the video, some info about the system.

    This version I am releasing to public is very general and simple.
    Units will be revealed if they are un-obscured in a 360 degree angle around your squads.

    I am in the process of making another version, but that will only be released in my mod (gotta keep something exclusive no :P).

    This version will have directional detection on single and small man squads (1 -2) so they can only detect units that are in the direction they are facing, so a sniper prone in a bush wont reveal a squad that are running behind him on the edge of LOS.

    It will also have dual directional detection on tanks (the way it is facing and the way the turret is facing)

    One last thing is sound awareness, this is mainly vs tanks, if there is only a hedge between some men and a tank, Those men could probably hear the tank, so a vehicle icon will be shown on the mini map, like tank awareness for the PE.


    ok, on to the files that are attached to the bottom of this post.

    If you just want to test out the system then the file called "ObjectBlocking-losMod.rar" is what you need, it is a clean mod that just has this system on it for you to test.

    The second one ("ObjectBlocking-losMacro.rar") is so you can install the system into a mod you are making, it has macro's and all the scar in it.
    With this version make sure you read all the info about what each macro does, and how to use it. As a general piece of advice I would install this system as one of the last things you put in your mod to limit chances of you messing something up when you are making more changes to the various bits of your mod.

    All the scar is un-encrypted so you can see how things work and I think the macros are also a good example of how you can get macros to do almost anything. There are also quite few useful misc functions I have made, only the ones needed in this system are there, but if you want the rest tell me.


    Of course this is still very early in development, any feed back you can give from playing around with it will be very welcomed. If you do use this in your mod, just credit me. If you want to edit the system feel free, but no matter how much you edit it, you still used my system as a base, so again credit.

    That is all, Btw I take no responsibility if the macro's somehow mess your mod up, make a backup before you run them :P.
    Attached Files
    Last edited by cozmoisme; 17th Dec 09 at 9:14 AM.

  2. #2
    A.W.E.S.O.M.E

    so would it theoretically be possible to eliminate FOW altogether and use your LOS system?

  3. #3
    Member Cozmo's Avatar
    Join Date
    Oct 2006
    Location
    Bristol, England
    yea, but I would use fow as a visual way to show the range of units... but yes it would be very easily possible.

    However, lack of visual reference is not often a good thing.

  4. Company of Heroes Senior Member  #4
    Moderator Lethal Dosage's Avatar
    Join Date
    Sep 2007
    Location
    In the back of my mind.
    So your cracked the issues? Great!

    Sadly i can't watch the video, but this is definately an achievement! Congrats!

  5. #5
    Member Cozmo's Avatar
    Join Date
    Oct 2006
    Location
    Bristol, England
    why not, any when I get my good pc running I will make a Hi-res version.

  6. Company of Heroes Senior Member  #6
    Moderator Lethal Dosage's Avatar
    Join Date
    Sep 2007
    Location
    In the back of my mind.
    Unfortuantly i'm stuck on 32k dialup, which gives me a download speed of approximately 3k per second. Sadly WiFi broadband isn't all that great and still expensive in my area, as is cable internet.

    But i'm definately going to try this and see for myself just how great this is. True LoS is something i always wanted for CoH, since it came out... especially since i moved onto CoH from Blitzkrieg.

  7. #7
    Member Cozmo's Avatar
    Join Date
    Oct 2006
    Location
    Bristol, England
    Same, I like Men Of War, but it is just not as polished as CoH. I hope to bring CoH as close to a realistic RTS as I can, this system is a HUGE part of it, I am so happy.

  8. #8
    Member DemoSS's Avatar
    Join Date
    Jun 2009
    Location
    Russia
    cozmoisme, great work! Just one question: what about the low objects (wooden fences etc)? They are block the LOS too? I haven't seen the video yet (low-speed connection), so, maybe there is an answer in it..
    Last edited by DemoSS; 15th Dec 09 at 10:57 PM.

  9. #9
    http://botb.fiffa.net Halftrack's Avatar
    Join Date
    Oct 2006
    Location
    Berlin, Germany
    Wow! Marcus, this isnt just awesome, this is fantastic, to say the least.

    I agree the FoW should be kept as a visual guideline for sight, but combined
    its the ultimate tool to make the game realistic.

    gonna test that out asap.

  10. #10
    Member WangTangManPro's Avatar
    Join Date
    Dec 2009
    Location
    Deutschland
    gekauft!

    i mean i'll take it
    .
    .
    .



    btw GOOD JOB
    In einer dunklen Ecke still und heimlich einen Mod am basteln... oO

    My Icon-Packs http://forums.relicnews.com/showthre...ate-19.06.2011

  11. #11
    Member Cozmo's Avatar
    Join Date
    Oct 2006
    Location
    Bristol, England
    Quote Originally Posted by DemoSS
    cozmoisme, great work! Just one question: what about the low objects (wooden fences etc)? They are block the LOS too? I haven't seen the video yet (low-speed connection), so, maybe there is an answer in it..

    No fences don't, basically, if men can't shoot through it/over it they can't see through it.

  12. #12
    Member Cozmo's Avatar
    Join Date
    Oct 2006
    Location
    Bristol, England
    This might to better in the ammo box, can a mod move it please.

  13. Space Marine Senior Member Gamers Lounge Senior Member General Discussions Senior Member  #13
    Voice of Reason Bowkers's Avatar
    Join Date
    May 2008
    Location
    England
    I'd already tagged this to be moved on, but I was clearly distracted..Sorry, moved.
    Quote Originally Posted by Pouk
    I'm not looking for what might happen after the Bowkers come to see this thread...
    A Lannister always pays his debt

  14. #14
    Member Cozmo's Avatar
    Join Date
    Oct 2006
    Location
    Bristol, England
    , thanks.

  15. #15
    Member GzaDrunkGenius's Avatar
    Join Date
    Jul 2009
    Location
    Nederland, Vlaanderen
    now this is what i'm talking about
    the music was really bad tough ...
    "If everyone smoked a blunt, relieve the mind, the world could be a better place."

  16. #16
    Member Cozmo's Avatar
    Join Date
    Oct 2006
    Location
    Bristol, England
    New Hi-res video is up.

  17. #17
    nice job on the vid!

    are you going to make it so units can hide in buildings?

  18. #18
    Member Cozmo's Avatar
    Join Date
    Oct 2006
    Location
    Bristol, England
    yup and I got a whole system planned that includes storming buildings.

  19. #19
    storming buildings? now that i'm interested in

  20. #20
    Member Cozmo's Avatar
    Join Date
    Oct 2006
    Location
    Bristol, England
    I have a general plan in my head, we shall see if it actually works when i start looking at it.

  21. #21

  22. #22
    Member Cozmo's Avatar
    Join Date
    Oct 2006
    Location
    Bristol, England
    As always the actual way it works will be hacky as fuck, but if it is stable then it doesn't really matter . ps, anybody actually interested in how I do this system (Object blocking) .

  23. #23
    i am interested in how you get units to be 'invisible' but still visible to the player.

    this would be very useful to me in OMG - i would like to make something still visible in game (to both players) but untargetable without changing the units armour class

  24. #24
    Member Cozmo's Avatar
    Join Date
    Oct 2006
    Location
    Bristol, England
    problem is the squad AI can still target them, you need to change armour type to stop automatic attacking of units.

  25. #25
    Member DemoSS's Avatar
    Join Date
    Jun 2009
    Location
    Russia
    I'm interested too.. Also I like your idea to storming buildings. And what do you think about hiding in the buildings?

  26. #26
    http://botb.fiffa.net Halftrack's Avatar
    Join Date
    Oct 2006
    Location
    Berlin, Germany
    Storming buildings would be the cream on the cake.

    But BTT:

    What about smoke ? Is this sight blocking , tooo ? That would give
    smoke grenades the tactical advantage it was designed for.

  27. Modding Senior Member Company of Heroes Senior Member  #27
    Celéstial by heart Celution's Avatar
    Join Date
    Apr 2008
    Location
    Sweden
    It is awesome mate! Keep on the good work!

  28. #28
    Member Cozmo's Avatar
    Join Date
    Oct 2006
    Location
    Bristol, England
    Quote Originally Posted by Halftrack
    Storming buildings would be the cream on the cake.

    But BTT:

    What about smoke ? Is this sight blocking , tooo ? That would give
    smoke grenades the tactical advantage it was designed for.
    I was just thinking about that this morning, I would love it to but I also don't want the units to stop firing. They would keep firing even tho they couldn't see them.

    I guess I could use my last known position system...

    storming buildings would happen one of two ways: 1. the units already in the building are hiding and the "stormers" don;t know they are there and will be ambushed.

    2. The stormers know the enemy is there and are storming.

    This will pretty much only be scar calculations based on the unit types, who was ambushed, vet, man count etc. I will use scar to fire off weapon sounds etc. then the losers will either retreat out of the building or be wiped out.

    if there is only like a sniper hiding in the building then the un aware enemy may not even find him. of course unless he fires or tries to leave, Then that would be based on his vet and pure luck.

  29. Company of Heroes Senior Member  #29
    Moderator Lethal Dosage's Avatar
    Join Date
    Sep 2007
    Location
    In the back of my mind.
    Ok, Storming Buildings would be great, and your second suggestion would be the best way to go, for uncamouflaged units, while units in camo would remain hidden inside the building until they reveal themselves.

    It would be great if smoke did act as a vision block to the units on the ground, i really hope you can get it to work the way you would like. BTW, does terrain effect their sight? For example does a ridge or cliff above the unit block their vision, or sitting on top of said ridge/cliff greatly enhance their vision.

  30. #30
    Member Cozmo's Avatar
    Join Date
    Oct 2006
    Location
    Bristol, England
    1. with the storming buildings I was just out lining the possible scenarios that would lead to a fight in a building. Not possible ways to implement it

    2. I know smoke would be awesome and I defiantly want to somehow do that...

    3. Not really possible for the extra vision being on top, but if the cliff has shot blockers on it then the people on top wont be able to see the people at the bottom and vice versa (I work on the fact, if you can shoot it you can see it).

    And because Height is not really very well mapped into the engine I don't think there is a way I can use it... in fact there I even spotted a tiny flaw: If you shot block your cliff to stop units shooting up and down them the LOS will also be blocked...

    I could just use the ingame options in tuning to make elevation increase the real LOS (the ring) and my system would be able to expand with it. But I don't think there is a way to make people on top of cliffs invisible to people below cliffs.

  31. #31
    Member Cozmo's Avatar
    Join Date
    Oct 2006
    Location
    Bristol, England
    It is always good to think about stuff when going to bed, because I thought about this: It is possible to get both the difference in flat plain between two units and the difference in vertical plain, now I could add a calculation that if the ratio between the two was very high, (aka low flat distance, large height distance <-- relatively to each other, that is why a ratio would be used) I could hide and show them accordingly.

    Now the cliffs giving extra sight might be hard because we would only want it to effect the direction the cliff is facing, not inland too... anybody gets any brainwaves, shout.

  32. #32
    Member huetti07's Avatar
    Join Date
    Jun 2009
    Location
    Austria
    Is the AI seeing your men or is it as blind as you when your units are out of sight?

    Maybe increase the sight to the direction, the unit can't move ->towards the clive

  33. #33
    Member Cozmo's Avatar
    Join Date
    Oct 2006
    Location
    Bristol, England
    When you are out of sight the AI cannot shoot you because all invisible units have a non targetable armour type.

    However the AI always knows where you are even in FOW, that is why in skirmish they always seem to manage to sneak through backcappers, the know where your units are and the range they can see.

  34. #34
    Member Muad'Dib's Avatar
    Join Date
    Aug 2007
    Location
    Wherever I Lurk
    I tried this out with Blitzkrieg and got a Fatal AI Execution when I start a skirmish game. The game loads but crashes the very second the game starts. Any suggestions on how I can get this going with Blitzkrieg?

  35. #35
    Member Cozmo's Avatar
    Join Date
    Oct 2006
    Location
    Bristol, England
    I have never tried it with blitzkrieg, that is a very heavily edited mod... The macro version was mainly for modders to add it to their mods, the release of blitzkrieg may not be suitable to add it to, But I will look into it after I have fixed the small issue with team weapons crashing it.

  36. #36
    Member huetti07's Avatar
    Join Date
    Jun 2009
    Location
    Austria
    I tried the mod version of it, and i have also fatal error

  37. #37
    Member Cozmo's Avatar
    Join Date
    Oct 2006
    Location
    Bristol, England
    There is a known bug with Weapon teams which I will sort in due course. If it wasn't a weapon team any info about the error would be helpful.

  38. #38
    Member huetti07's Avatar
    Join Date
    Jun 2009
    Location
    Austria
    The error occured one time, after enemy MG42 team has been build.
    Another time, the error was at the start of the match, and i think, because of the British emplacements, because they also are some kind of weapon teams, aren't they?
    Last edited by huetti07; 27th Dec 09 at 1:49 AM.

  39. #39
    Member Cozmo's Avatar
    Join Date
    Oct 2006
    Location
    Bristol, England
    maybe, I will do some testing after Christmas.

  40. Company of Heroes Senior Member  #40
    Moderator Lethal Dosage's Avatar
    Join Date
    Sep 2007
    Location
    In the back of my mind.
    British emplacements do have weapon teams or crewed weapons spawn inside them when their completed, so they would also count.

  41. #41
    Member Cozmo's Avatar
    Join Date
    Oct 2006
    Location
    Bristol, England
    yea, I will be fixing this when I get to doing the version that will in be my mod.

  42. #42
    Member huetti07's Avatar
    Join Date
    Jun 2009
    Location
    Austria
    I dont want to annoy, but is there a progress with this?
    Last edited by huetti07; 15th Feb 10 at 1:03 PM.

  43. #43
    Member huetti07's Avatar
    Join Date
    Jun 2009
    Location
    Austria
    Hi, have you found a solution for your mod?
    Maybe I can help, finding the problem...

  44. Modding Senior Member  #44
    Halftrack kindly asked me to have a look at this system and the crashes caused by team weapons. Certain entries for certain EBPs (that is: all EBPs not found in ebps\races\..., thus team weapon EBPs aren't registered as well) are missing in systemconst.scar (Data\Scar\objectblocking-los\systemconst.scar). The solution is rather simple:
    Code:
      target = 
      {
        -- Cozmo's code is missing the EBPs of team weapons
        -- Just add every team weapon to this table (see the next entry for an example-entry) to prevent the game from crashing.
        -- -cope.
        ["ebps/gameplay/props/m1917_30cal_hmg"] = 
        {
          base = [[tp_deftarget]],
        },
    -cope.
    "When life gives you lemons, make lemonade. Then use the profits to buy an assault rifle. See if life makes the same mistake twice."
    When to report?

  45. #45
    Its wonderful to have found a solution to the problem that was crashing the code, its also fanstastic to have the solution posted now i can finally implement a crash-free LOS script,thank you this will make my life much easier.

    btw- whats been up with cozmo i havent seen any updates on his work recently and he hasnt posted around the forum for a while.

  46. #46
    http://botb.fiffa.net Halftrack's Avatar
    Join Date
    Oct 2006
    Location
    Berlin, Germany
    I mailed with cozmo some time ago already, he quit modding CoH...sadly.

  47. #47
    Member huetti07's Avatar
    Join Date
    Jun 2009
    Location
    Austria
    So I was right
    R.I.P. Rad | R.I.P. Loran | R.I.P. MrScruff

  48. #48
    Member Ninja117's Avatar
    Join Date
    May 2009
    Location
    London, United Kingdom
    I have stopped developing anything to do with CoH... all my files relating to it have been deleted.

    Marcus
    i can confirm this :'(

  49. Modding Senior Member Company of Heroes Senior Member  #49
    Celéstial by heart Celution's Avatar
    Join Date
    Apr 2008
    Location
    Sweden
    Veterans leave or get less active, it's unfortunately true. Examples are Cozmo, $_TEXAS_$, Average Joe, Panzer Jager and more.

  50. #50
    @hnunez - You can up your veterency status in my mind by posting the new Data\Scar\objectblocking-los\systemconst.scar file after you update it :-)
    "There's no explaination for why I survived and others didn't other than when your number is up its your time to go. So now, every morning when I get up - I change my number."

    Unknown Pearl Harbor Survivor

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •