[REL] rF2 Spotter Plugin

Discussion in 'Other' started by Gerald Jacobson, Oct 17, 2014.

  1. jefcam

    jefcam Registered

    Joined:
    Feb 10, 2011
    Messages:
    261
    Likes Received:
    108
    Juergen-BY i just tested the game and I'm having no crash or freeze. The probem is not coming from the brackets. The brackets are ok. In programming what is important that there are no missing brackets and brackets are in the right place. Alignment of brackets is just to make the code more readable. Most probably np++ highlights this convention problem. So I think its not a problem of brackets.

    As i said I played for 30 mins and no freeze when entering pits.

    However i noticed that:

    1. I need to remove the silence space from wav file cause a requested pit stop can be short as 5 seconds and because of the loop created by Gerald the sound is cut and not heard.

    2. Also if pitstop is for example 20 seconds long than the sound of drilling is repeated and repeated which does not make sense. The sound must be heard once.

    3. Also if other drivers makes pit, the sound must not be played.

    But I repeat I had no crashed or freeze.

    maybe we could avoid the loop and make it as simple as it was before.
     
  2. jefcam

    jefcam Registered

    Joined:
    Feb 10, 2011
    Messages:
    261
    Likes Received:
    108
    Just removed the loop. A simple event now. This should solve the problem of repeating of pitstop is long. I also did not hear the sound when other drivers entered pit.

    Check if without the loop the game keeps crashing. I had no crashing issues with v1.8

    ANY OTHER DRIVER HAVING CRASH ISSUES WITH v1.8?

    Just replace these two files.

    TEST ONLY:

    https://www.dropbox.com/s/jet8jjhhoi98cvm/NoLoop.rar?dl=0
     
    Last edited by a moderator: Oct 5, 2015
  3. Carlo

    Carlo Registered

    Joined:
    Apr 16, 2014
    Messages:
    300
    Likes Received:
    0
  4. jefcam

    jefcam Registered

    Joined:
    Feb 10, 2011
    Messages:
    261
    Likes Received:
    108
    Carlo I saw your formatting of code. I was writing the event using the normal notepad.

    Am i right saying that the brackets are ok, despite the fact that not aligned properly and code should work normally?

    I prefer use the time to make/test new events or new sounds then using time on {} indentation.

    jef
     
  5. Carlo

    Carlo Registered

    Joined:
    Apr 16, 2014
    Messages:
    300
    Likes Received:
    0
    Yes - braces are OK - just a formatting issue.

    When writing code, it's generally accepted practice to replace each tab with 4 spaces. So, when using a code editor or IDE (Integrated Development Environment), this is done automatically through settings. When the tab key is used, the tab symbol is replaced by four spaces.
     
  6. jefcam

    jefcam Registered

    Joined:
    Feb 10, 2011
    Messages:
    261
    Likes Received:
    108
    Thanks Carlo,

    Can someone check with v2.0.0 (original files) and then put my version 1.8 update, if game has freeze or crash.
     
  7. PRC Steve

    PRC Steve Registered

    Joined:
    Sep 27, 2012
    Messages:
    1,301
    Likes Received:
    11
    I am using v2.0.0 with your v1.8 soundpack for about 6 hours without any crash.
     
  8. PRC Steve

    PRC Steve Registered

    Joined:
    Sep 27, 2012
    Messages:
    1,301
    Likes Received:
    11
    Sorry just went online and as soon as a friend pitted, I got the sound loop whilst out on track... on pressing esc to go back to garage my rF2 crashed.
     
  9. jefcam

    jefcam Registered

    Joined:
    Feb 10, 2011
    Messages:
    261
    Likes Received:
    108
    Thanks PRC Steve, 7 posts above I just posted a new events file and rules where I removed the loop and left it simple.

    Can you test that version for me and tell me if

    1. there was crash
    2. sound was heard when another driver made a pit


    I will test today and release 1.9. Most probably i will remove the loop from the pit event. Will also try to make the sound not play in case there is a stop and go penalty.

    Will release v1.9 this evening
     
    Last edited by a moderator: Oct 6, 2015
  10. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Spotter v2.0.1 Available

    -Fix crash due to pit stop/pit stop end
    -Fix my DefaultEvent.ini

    IMPORTANT: In the event file, open braket should appear only after "Variable=" or "Value=" so the following will not work as expected
    Code:
     
    Variable=Session {
        Value=0,13 {
            Variable=Input1 {
                 Value=1 {
                            [COLOR="#FF0000"]{[/COLOR]FileLoop1=pitstop.wav [COLOR="#FF0000"]}[/COLOR]
                 }           
           }
       }
    }
    it is interpreted like
    Code:
    Variable=Session {
         Value=0,13 {
             Variable=Input1 {
                 Value=1 {
                 }           
                 FileLoop1=pitstop.wav 
             }
        }
    }
    So the FileLoop is not at its correct place and outside the test to see if it is your car or not (this explain why you have sound when another car pit)



    NOTE: You can use now FileLoop to have a real pit felling for example with something like this
    Code:
    Variable=Session {
        Value=0,13 {
            Variable=Input1 {
                 Value=1 {
                            FileLoop1=pitstopBackground.wav
                            File=pitstopTiresChange.wav
                 }           
           }
       }
    }
    
     
    Last edited by a moderator: Oct 6, 2015
  11. jefcam

    jefcam Registered

    Joined:
    Feb 10, 2011
    Messages:
    261
    Likes Received:
    108
    VERSION 1.8b

    FIX: Crash in Pit Stop
    FIX: Hearing pit sound for other cars while in pits.
    FIX: In case you pit and you are serving a stop and go penalty no sound is heard.
    FIX: Removed silent sound from pitstop.wav for short pitstops (so that sounds is complete in 5 seconds max)
    FIX: Pit sound file is not heard repeating in case of long pitstop.

    DOWNLOAD v1.8b
    https://www.dropbox.com/s/fccp3rxf6ftvyts/Sound%20Pack%201.8b.rar?dl=0


    ps. Gerald that idea you have above we can implement in next version. However I think the pitstopbackground sound should start to loop when you PIT IN (enter pitlane) and not in box only, and stop when you leave pit in PITOUT.
     
  12. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Yep or even two loops if you have sound for pit crew working around your car
     
  13. alpha-bravo

    alpha-bravo Registered

    Joined:
    Dec 22, 2012
    Messages:
    1,374
    Likes Received:
    31
    Thanks folks :)

    PS: the countdown in the pit lane is a great thing :)
     
  14. jefcam

    jefcam Registered

    Joined:
    Feb 10, 2011
    Messages:
    261
    Likes Received:
    108
    Your feedback is very important for me and Gerald.

    If you think that some sounds/phrases can be improved or insert new ones just let me know. Most often I watch F1 Race Edits and note the radio messages they exchange and try to use in spotter.

    Jef
     
  15. Euskotracks

    Euskotracks Registered

    Joined:
    Nov 29, 2013
    Messages:
    1,092
    Likes Received:
    191
    Hi Jef,
    Great job you and gerald have done.

    May I ask how you get yours voices so that they seem to be from a radio?
    I tried recording some driver names but they sound awful.
    Is there some program to add background noise and modulate the tone?

    Should I understand that only the vehicle driver names can be used?
    Is there a way to use the player nickname/real name depending on the server setup? I would expect that the same names that you see in the driver tag (the one that appears when clicking TAB) should be the ones called by the spotter.

    For endurance races a message when preceding or following car swaps drivers would be useful. Makes sense only if player name is called rather than car driver name.

    Enviado desde mi SM-G130HN mediante Tapatalk
     
  16. jefcam

    jefcam Registered

    Joined:
    Feb 10, 2011
    Messages:
    261
    Likes Received:
    108
    Eukotracks for sound recording I have replied to you by PM and will send you some radio static noise effect and a screenshot of how to make multichannel.

    I did not understand your problem about which driver names can be used. The sound samples for drivers (the wav files) must be similar to the name show they appear in game. That means that if for example your nam ein game is Richard Bailey, the wav file must be Richard Bailey.wav Not sure if I understood your question. If not give me an example so I can understand better.

    Till now never used car swaps. I think I got what you mean. Seems a bit complicated. Maybe Gerald can give a better answer for this, as its him that works the engine from internal plugins.
     
    Last edited by a moderator: Oct 7, 2015
  17. Ernie

    Ernie Registered

    Joined:
    Oct 5, 2010
    Messages:
    359
    Likes Received:
    219
    Had a race this evening. I was using Spotter v2.0.1, but i still had a crash at the end of my pitstop. Any hints?
     
  18. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    No crash until now. I will make many pitstop and see if i can reproduce the issue.
     
  19. Lou Is

    Lou Is Banned

    Joined:
    Sep 9, 2015
    Messages:
    197
    Likes Received:
    0
    You guys rock, but every time i think in install the file i've downloaded you are already releasing a new version. I don't have time to complain about something.
    I suggest when you find a bug let people complaining for at least a week even if you already had the solution. Complain is what makes us humans. Let people have fun too
    Ehehe thanks for your work :p
     
  20. Greenkia

    Greenkia Registered

    Joined:
    Jun 9, 2015
    Messages:
    20
    Likes Received:
    0
    In a race of 40 laps , the spotter tells me 10 laps remaining when in fact there were 7 laps .

    Spotter v2.0.1
    Spotter Plugin Sound Pack V. 1.8b
     

Share This Page