Jump to content

Agent

Former Developers
  • Posts

    1271
  • Joined

  • Last visited

Posts posted by Agent

  1. Other than seamless travel, it is absolutely impossible to transfer anything that extends from Actor between levels, because an Actor exists on the level itself. I've been passing certain non-Actor variables such as the connection to the server list through Rx_GameEngine lately, but this isn't at all intended to be used by modders since including an Actor in there literally crashes the game client. I'm sure I could create some sort of interface for this though if it's genuinely useful -- just be aware that however I implement it, it wouldn't accept Actors in any way.

    The options available to you are:

    • Write variables to a config file -- this is probably the most straight forward way to do what you want
    • Pass variables as a server travel parameter -- this requires extending Rx_Game and using a config file would generally be cleaner
    • Use seamless travel -- this is not recommended or supported in any way, and could have screwy results since we haven't tested anything with it in a very long time.
    • Like 1
  2. I'm probably going to actually remove RenX.Ladder.Web at some point; I just need to change the underlying database structure is all.

    In the meantime, here is the config for RenX.Ladder.Web that the official leaderboard uses:

    Spoiler

    ; File: RenX.Ladder.Web
    ;

    ; Name of the leaderboard table page (Default: )
    LadderPageName=

    ; Name of the search table page (Default: search)
    SearchPageName=search

    ; Name of the profile page (Default: profile)
    ProfilePageName=profile

    ; Path for the pages to be reached at (Default: /)
    Path=/

    ; Name of the file that is prepended before every page
    HeaderFilename=html\RenX.Ladder.Web.Header.html

    ; Name of the file that is appended to every page
    FooterFilename=html\RenX.Ladder.Web.Footer.html

    ; Name of the file that defines the profile page layout
    ProfileFilename=html\RenX.Ladder.Web.Profile.html

    ; Name of the file that is prepended to leaderboard tables
    LadderTableHeaderFilename=html\RenX.Ladder.Web.Ladder.Table.Header.html

    ; Name of the file that is appended to leaderboard tables
    LadderTableFooterFilename=html\RenX.Ladder.Web.Ladder.Table.Footer.html

    ; Number of entries to display per table page
    EntriesPerPage=50

    ; Minimum number of input characters on the search page
    MinSearchNameLength=3

    ; Defines the layout of the leaderboard table rows
    EntryTableRow=<tr><td class="data-col-a">{RANK}</td><td class="data-col-b"><a href="profile?id={STEAM}&database={OBJECT}">{NAME}</a></td><td class="data-col-a">{SCORE}</td><td class="data-col-b">{SPM}</td><td class="data-col-a">{GAMES}</td><td class="data-col-b">{WINS}</td><td class="data-col-a">{LOSSES}</td><td class="data-col-b">{WLR}</td></tr>

    ; Defines the layout of the 'previous' button on profiles
    EntryProfilePrevious=<form class="profile-previous"><input type="hidden" name="database" value="{OBJECT}"/><input type="hidden" name="id" value="{WEAPON}"/><input class="profile-previous-submit" type="submit" value="&#x21A9 Previous" /></form>

    ; Defines the layout of the 'next' button on profiles
    EntryProfileNext=<form class="profile-next"><input type="hidden" name="database" value="{OBJECT}"/><input type="hidden" name="id" value="{VSTEAM}"/><input class="profile-next-submit" type="submit" value="Next &#x21AA" /></form>

    ;EOF

    And attached are the files in the html directory.

    HTTPServer is bound to 0.0.0.0 on port 80.

    ForceDefault is set to true on RenX.Ladder.All-Time.

    The plugins loaded: IRC.Core CoreCommands PluginManager ExtraCommands RenX.Core RenX.Commands RenX.Logging RenX.ModSystem RenX.Listen RenX.Ladder HTTPServer RenX.Ladder.Web RenX.Ladder.All-Time RenX.Ladder.Yearly RenX.Ladder.Monthly RenX.Ladder.Weekly RenX.Ladder.Daily RenX.ServerList

     

    Hope this helps,

    Jessica

    html.zip

    • Like 1
  3. Are you trying to set bTestMode on every Controller? If so then you're not having a replication issue; you have to iterate through every controller and set the variable on the server, which then replicates to the client for their respective controller. Every player has a separate Controller.

    I'm sure you can find an example of iterating through AllControllers in Rx_Game somewhere.

    • Like 1
  4. From what I can recall, the initial rationale for reducing the player limit from 64 to 40 was for performance issues that occurred at higher player counts -- this was originally meant to be a temporary change. I'm not against raising this hard limit back up to 64 whilst leaving the default value at 40, thus eliminating the need for a mutator.

    I'm also not against refusing servers with player limits above 64 from the server list, though. Much of the game's UI (launcher included) assumes that there will be at most 64 players at any given time in addition to balancing issues.

×
×
  • Create New...