[plugin] UpdateScoring is not called on DedicatedServer

Discussion in 'Plugins' started by MaXyM, Jan 14, 2012.

  1. MaXyM

    MaXyM Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,774
    Likes Received:
    29
    I found that UpdateScoring method is never called when plugin is run with dedicated server.
    The same plugin run with client (game) instance works like a charm.

    Anyone, especialy devs may confirm that?


    There is also small thing I cannot manage: mSectorFlag[] returns unexpected values. In rF1 it returns 1 or 0. Now I get 11 and occasionaly 1. Here is the code I'm using to write it into file:

    Code:
    fprintf_s( fo, "SectorYellowFlags=(%d,%d,%d)\n", info.mSectorFlag[1], info.mSectorFlag[2], info.mSectorFlag[0]);
    BTW: I hoped to be the first who released plugin for rF2 :(


    Again, please consider to create plugin subforum. My previous request fell down to 3 page after 6 hours:
    http://isiforums.net/f/showthread.php/2386-Plugin-developers-subforum.
    Without subforum plugin developement questions will be easily missed.


    BTW: Example plugin is set to use V1 of InternalsPlugin. InternalsPlugin itself is defined for v4 already. It's a note to all which cannot get new features to work (access driving aids settings etc)
     
    Last edited by a moderator: Jan 14, 2012
  2. juask

    juask Registered

    Joined:
    Oct 5, 2010
    Messages:
    2
    Likes Received:
    0
    Same problem here, after do some tests in game works perfectly, then in a dedicated server... no gave any data.

    Regards.
     
  3. Stevenking

    Stevenking Registered

    Joined:
    Feb 7, 2011
    Messages:
    58
    Likes Received:
    2
    Same problem for me. Any news? :confused:
     
  4. mikla521

    mikla521 Registered

    Joined:
    Nov 4, 2011
    Messages:
    14
    Likes Received:
    0
    Where did you guys find any info of plugins at all? I can't even find that example.cpp that someone has mentioned...
     
  5. MaXyM

    MaXyM Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,774
    Likes Received:
    29
    You were seeking not enouth ;)
    Look at downaloads thread. InternalsPlugin has been released about 2 weeks ago (yet before beta)
     
  6. mikla521

    mikla521 Registered

    Joined:
    Nov 4, 2011
    Messages:
    14
    Likes Received:
    0
    Hehe..ok, thanks...i've been looking through the first 300 posts in the beta forum :)
     
  7. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    7,399
    Likes Received:
    3,095
    Spent hours trying to work out what I was doing wrong today, comparing to an rF1 plugin that worked fine, checking multiplayer.ini settings, etc etc etc... this is rather frustrating.

    Anyone got info on ForceFeedback() ? The example needs the incoming changed from float to double to get called at all, but the returned value appears to be ignored completely by rF2.
     
  8. Mee

    Mee Registered

    Joined:
    Oct 4, 2010
    Messages:
    154
    Likes Received:
    13
    Same problem here. Worked fine on my own pc, but once I ran my plugin with the dedicated server it doesn't run at all...

    It only uses the UpdateScoring-part, no telemetry, ffb,...
     
  9. MaXyM

    MaXyM Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,774
    Likes Received:
    29
    ?? UpdateScoring works for you under dedicated or game?

    I think we are starting to mix different issues. Please start new thread for each single issue.
     
  10. Mee

    Mee Registered

    Joined:
    Oct 4, 2010
    Messages:
    154
    Likes Received:
    13
    UpdateScoring works in the game, but not while running the dedicated server. So, same problem as your opening post ;).
     
  11. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    7,399
    Likes Received:
    3,095
    Mee was referring to his plugin using only the updatescoring; hence it doesn't really do anything on a dedi :)
     
  12. Mee

    Mee Registered

    Joined:
    Oct 4, 2010
    Messages:
    154
    Likes Received:
    13
    Should have said that a bit more clearly apparantly :).
     
  13. Terence Groening

    Terence Groening Member

    Joined:
    Oct 13, 2010
    Messages:
    169
    Likes Received:
    0
    This was inadvertent (the dedicated server failing to call UpdateScoring), and should be fixed in the first update.
     
  14. Mee

    Mee Registered

    Joined:
    Oct 4, 2010
    Messages:
    154
    Likes Received:
    13
    Great!
     
  15. Stevenking

    Stevenking Registered

    Joined:
    Feb 7, 2011
    Messages:
    58
    Likes Received:
    2
    Thanks for reply
     
  16. ThaKilla

    ThaKilla Registered

    Joined:
    Jan 10, 2012
    Messages:
    7
    Likes Received:
    0
    Still having this Problem on Build 90. In Client everything works fine.
     
  17. MaXyM

    MaXyM Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,774
    Likes Received:
    29
    I have to check but it worked in 85 for sure.
    note that plugin starts to work with 20 sec delay
     

Share This Page