Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

All Activity

This stream auto-updates     

  1. Today
  2. Yesterday
  3. Last week
  4. Version 1.0

    0 downloads

    Requires RenSharp v1.3 This plugin will embed a TTFS server inside your Renegade FDS. Pretty much the only thing you need to do is add the .DLL to your FDS and the config file. This plugin does NOT require administrator privileges, however for it to work for external people you would probably need to forward the specified port in your router/network. You may set other settings in the config file, but the only settings required in the config file are the port and the external IP checking websites. All others can have defaults and are probably better than what you would configure them to. PackageServer.ini: ; This settings file is for the Package Server [General] ; IPFetchSecondsInterval defines the interval in seconds when to check for the external IP of the Server ; Default is 5 ;IPFetchSecondsInterval = 5 ; TTFSPath override the TTFS path where the package server gets its packages from ; Default is 'Engine.AppDataPath/ttfs' ;TTFSPath = MyPath ; MaxClientConnections specifies the max clients can connect from a single IP address ; <= 0 means no limit, this is discouraged ; Default is 10 ;MaxClientConnections = 10 ; ClientTimeout specifies how long a client may take to download everything in whole minutes ; <= 0 means no limit, this is discouraged ; Default is 60 ;ClientTimeout = 60 ; LocalIPAddress specifies the local IP to bind the package server to ; Default is any network interface ;LocalIPAddress = 192.168.0.1 ; Port specifies the local port to bind the package server to ; There is no default, this must be defined Port = 23445 ; This section is dedicated to the servers that will provide the 'raw' extneral IP address ; These servers MUST return an IPv4 address, since the Renegade client can't handle IPv6 [IPFetchURLs] 0=http://ipv4.icanhazip.com/ 1=http://ipv4bot.whatismyipaddress.com
  5. Version 1.0

    0 downloads

    Add this plugin to your RenSharp enabled server and it will enable you to put funding (credits) towards restoring dead buildings. For functionality, see the INI spoiler below. To enable: Add the DLL and INI file to your server directory. RenSharpBuildingRestoreFunding.ini: ; This plugin adds the following chat commands: ; - !fund <acronym> [<amount>] ; Funds a building <amount> credits with <acronym>. If <amount> is not specified it takes all the player's money. ; - !totalfund <acronym> ; Outputs the current total funds for a given building with <acronym>. Also displays how many credits you have put towards the funding ; - !refund [<acronym>] ; Refunds your credits that have been put towards building with <acronym>. If no <acronym> is specified it will refund funds on all dead buildings ; Global settings for the plugin ; All these global settings can be overridden on a per-map basis [RenSharpBuildingRestoreFunding] ; BRFEnabled ; Boolean value to specify if building funding is enabled. BRFEnabled = 1 ; BRFScaleWithPlayerCount ; Boolean value to specify if the cost of the building restore should go up based on the team's player count ; It uses the following formula: BRFRestoreCost * team player count * BRFScale BRFScaleWithPlayerCount = 1 ; BRFScale ; Float value for the scale to multiply the team player count by BRFScale = 1.0 ; BRFMaxRestoreCount ; Integer value to specify the maximum restore count for buildings, this is the default if none is specified for that particular building ; Declare a value < 0 for infinite restores BRFMaxRestoreCount = 2 ; BRFRestoreCost ; Integer value to specify the base restore costs for restoring a building. When BRFEnabled is enabled it uses the formula declared above. ; When disabled the absolute costs for the building is the same as BRFRestoreCost BRFRestoreCost = 2000 ; BRFAllowRefund ; Boolean value to allow refunds on funding of dead buildings BRFAllowRefund = 1 ; Example per map basis settings for the map C&C_Field.mix [C&C_Field.mix_RenSharpBuildingRestoreFunding] ; All below settings do the same as in the global settings, but they are only applied to the building presets that correspond with the acronym 'agt' ; The acroynms per building presets are declared below BRFMaxRestoreCount_agt = 1 BRFRestoreCost_agt = 1500 BRFScaleWithPlayerCount_agt = 1 BRFScale_agt = 0.9 ; Declare your building presets -> acronyms mappings ; Separate them by a '|'. Building preset names are case-sensitive. Acronym's are not. [RenSharpBuildingRestoreFundingDefs] SP_Comm_Center_Nod|mp_GDI_Com_Center|mp_Nod_Com_Center = com|comm|commcenter|comcenter|communicationcenter SP_Hand_Of_Nod_Nod|mp_Hand_of_Nod = hon|hand|handofnod Tut_Infantry_Barracks_GDI|mp_GDI_Barracks = bar|barracks|infantrybarracks|inf SP_Refinery_Nod|Tut_Tiberium_Refinery_GDI|Test_nod_refinery|mp_GDI_Refinery|mp_N od_Refinery = ref|refinery|refine SP_Power_Plant_Nod|SP_Power_Plant_GDI|Tut_Power_Plant_GDI|mp_GDI_Power_Plant|mp_ Nod_Power_Plant = pp|powerplant|power|plant SP_Con_Yard_GDI|SP_Con_Yard_Nod = cyard|conyard|constructionyard|cy SP_Obelisk_Nod|mp_Nod_Obelisk = ob|obby|obelisk|obl|obi Tut_Advanced_Guard_Tower_GDI|mp_GDI_Advanced_Guard_Tower = agt|gt|advanced|advancedguardtower SP_Weapons_Factory_GDI|Tut_Weapons_Factory_GDI|mp_GDI_War_Factory = wf|factory|weapons|weaponsfactory|weps|wepfac SP_Nod_Air_Tower|test_nod_airtower|mp_Nod_Airstrip = air|strip|airstrip|airtower SP_Silo_Nod = silo|tibsilo|tiberiumsilo mp_GDI_Helipad|mp_Nod_Helipad|SP_Helipad_Nod = helipad|heli|pad mp_Mutant_Lab = lab|mutantlab|mutant mp_GDI_Repair_Bay|mp_Nod_Repair_Bay = rep|repairbay|bay|repbay Source code: https://github.com/Neijwiert/RenSharpBuildingRestoreFunding
  6. Version 1.0

    0 downloads

    I have been working for this for weeks!! And now it is finally done. It is a basic web server runs along with FDS. It can get game definitions such as server name, map, etc. and can create a customizable embed as picture with cool features. It logs every event in a file you specify. Just put RenWeb.dll and Newtownsoft.Json.dll into your FDS and add ONLY RenWeb.dll under RenSharpPlugins section! Plugin is designed to work with only RenSharp 1.3! This plugin automatically extracts some HTML and Embedding files as a tutorial, if your HTTP Root Folder is empty. You can access to your web server with your IP or host and your port (if it is 80, port not needed). You can specify your custom error pages and MIME types! There are some special MIME types to work with RenWeb embeds, etc. You can contact to me and tell me the variable or leave the variable you want to see in comments! So I can add it for you. My hands and my brain get tired of thinking the features of this beautiful plugin. You have to install this to see it's cool features! For instance, the MaxRen Server is running part-time. If you are lucky, you can view it live! Main Page of Default RenWeb: http://mastercan.hopto.org:7550/ Example Embed of RenWeb Render: http://mastercan.hopto.org:7550/ExampleEmbed.embed NOTE: This plugin might require administrator priviliges to run. If it's not working, please try running server as administrator. Server has a config file to work with, I'll leave that here. But just know, plugin creates it too! You don't need to add it by hand. [RenWeb] ;Plugin made by MasterCan. ;This settings can be edited from game mode ini files as well. ;By default, these values will be used. ;This plugin only works with RenSharp 1.3 with DA 1.99 ;Basic documentation of RenWeb ;RenWeb is processing all of your HTML files before sending them to client. RenWeb checks all elements for it's tokens and it decides which is a server info and which is not. ;RenWeb replaces any text when it finds a match with it's prefix. If the variable is wrong, it returns nothing. ;Example: "<span class="MyServerName">$RenWebHTML_ServerName</span>". RenWeb processes and sends this to client as "<span class="MyServerName">Example Test Server</span>" ; ; ;All Variables of RenWeb: ;Here's the list of all variables usable. Server eturns nothing if it finds a invalid variable that starts with "$RenWebHTML_". ;These values are case sensitive. ;PLUGIN ONLY CHECKS HTML FILES FOR MATCH!!! CSS and JS files will not be checked. If you need these values in CSS and JS, please implement them in HTML file. ;=========================================================================================================================================== ;$RenWebHTML_Version : Returns RenWeb version. ;$RenWebHTML_ServerName : Returns server name. ;$RenWebHTML_CurrentMap : Returns current map. ;$RenWebHTML_NextMap : Returns next map. ;$RenWebHTML_TimeLeft : Returns time left as seconds. ;$RenWebHTML_TimeLeftF : Returns time left as HH:MM:SS formatted. ;$RenWebHTML_TimeElapsed : Returns time elapsed as seconds. ;$RenWebHTML_TimeElapsedF : Returns time elapsed as HH:MM:SS formatted. ;$RenWebHTML_TimeTotal : Returns total time as seconds. ;$RenWebHTML_TimeTotalF : Returns total time as HH:MM:SS formatted. ;$RenWebHTML_GameMode : Returns game mode name. ;$RenWebHTML_SGameMode : Returns short game mode name. ;$RenWebHTML_CurrentPlayerCount : Returns the ingame player count. ;$RenWebHTML_MaxPlayerCount : Returns the maximum player count. ;$RenWebHTML_GDIPoints : Returns GDI team total points. ;$RenWebHTML_GDIKills : Returns GDI team total kills. ;$RenWebHTML_GDIDeaths : Returns GDI team total deaths. ;$RenWebHTML_GDIName : Returns GDI team name. Useful for some mods. ;$RenWebHTML_NodPoints : Returns Nod team total points. ;$RenWebHTML_NodKills : Returns Nod team total kills. ;$RenWebHTML_NodDeaths : Returns Nod team total deaths. ;$RenWebHTML_NodName : Returns Nod team name. Useful for some mods. ;GameLog: Logs a line like "_RENWEB <IP> <Page>" when a player connects to server. GameLog=true ;Port: Determines the server port to host. Min: 1, Max: 65535 Port=7550 ;RootHTTPFolder: Root folder of your RenWeb HTML documents. RootHTTPFolder=RenWebHTTP ;MaxPendingConnections: Determines the maximum clients that connect at the same time. MaxPendingConnections=5 ;IndexFile: If no file name specified and client requests a folder name, this file will be loaded. If this file can't be located too, 404 will be sent. IndexFile=index.html ;LogFile: The file which will be written logs of RenWeb stuff. All events will be here. Default folder is root folder of FDS. LogFile=RenWeb.log [RenWeb_ErrorPages] ;You can specify your special error pages to send when a error occurs. ;If you supply error code in other different entries, first occurrence will be used. ;Usage: ErrorCodes=WebPage (You can seperate error codes with | delimeter) 404=404.html 500|502=ServerError.html [RenWeb_MimeTypes] ;You can specify your MIME types when client requests files. ;Most used MIME types are specified below. ;When client requests a file that does not exist in MIME list, will be returned 404. ;If you supply extension more than once, first occurrence will be used. ;Use lowercase to prevent bugs. ;================================ RenWeb MIME Types ================================ ;renweb/embed-file-png: A JSON content which is convertible to embed picture. This MIME processes file and returns picture to client as "image/png". ;renweb/embed-file-jpeg: A JSON content which is convertible to embed picture. This MIME processes file and returns picture to client as "image/jpeg". ;renweb/embed-file-gif: A JSON content which is convertible to embed picture. This MIME processes file and returns picture to client as "image/gif". ;=================================================================================== ;Usage: Extension=MIMEType .html=text/html .css=text/css .js=application/x-javascript .htm=text/html .mp4=video/mpeg .png=image/png .jpg=image/jpeg .exe=application/octet-stream .embed=renweb/embed-file-png GitHub Link: https://github.com/TheUnstoppable01/RenWeb
  7. Earlier
  8. One year.. and still miss you alot my friend..
  9. So cool)
  10. Version 1.0

    0 downloads

    This plugin sends a host message and/or game log message when detects a ingame or joining client lost connection with server. There are 5 different client variables to send with host message. You have to add the following configuration to da.ini in order to make plugin work. This plugin is not tested properly. Please open an issue on GitHub or report the bugs on comment section. This plugin only works with RenSharp 1.2 with Dragonade 1.99! Features: - Sends host message when player disconnects. - 5 client variables to send with host messages. - Game Log feature. The source of this plugin can be found at https://github.com/TheUnstoppable01/ConnectionLostDetector. RenForums Topic: http://www.renegadeforums.com/index.php?t=tree&th=41253&start=0& CONFIGURATION: (Add this into da.ini) [ConnectionLostDetector] ;Plugin made by MasterCan. ;This settings can be edited from game mode ini files as well. ;By default, these values will be used. ;This plugin only workis with RenSharp 1.2 with DA 1.99 ;GameLog: Logs a line like "_CONNLOST <Name> <ID> <Serial> <IP> <Version>" when a player loses connection with server. GameLog=true ;Message: The message that will be sent to ingame as Host message. Leaving blank won't send any message. ;Message Variables: $_PNAME = Returns player name. ; $_PID = Returns player ID. ; $_PSERIAL = Returns player serial hash. ; $_PIP = Returns player IP address. ; $_PVER = Returns player game version. ; ; !!! ALL OF THE VARIABLES ARE CASE SENSITIVE !!! Message=$_PNAME has lost their connection with server. (ID:$_PID)
  11. Version 1.0

    0 downloads

    This plugin plays the sound that every player choose when they joins. Players can adjust their join sound and their play delay (Sound plays after X,X seconds) You can see all command helps by typing "!<command alias> help" command. You have to add the following configuration to da.ini in order to make plugin work. This plugin is not tested properly. Please open an issue on GitHub or report the bugs on comment section. This plugin only works with RenSharp 1.2 with Dragonade 1.99! Features: - Plays sound when player joins. - Players can set their play delay. - Admins can change player's sound data. - Admins can set disabled sound files. - Admins can set min and max delay times. (Set both values same to lock delay amount.) - Values are being stored in a JSON file. - A gamelog is being logged when a join sound played. The source of this plugin can be found at http://github.com/TheUnstoppable01/JoinSounds. RenForums Topic: http://www.renegadeforums.com/index.php?t=tree&goto=493147&#msg_493147 CONFIGURATION: (Add this into da.ini) [JoinSounds] ;Plugin made by MasterCan. ;This settings can be edited from game mode ini files as well. ;By default, these values will be used. ;This plugin only works with RenSharp 1.2 with DA 1.99 ;CommandTriggers: Type here the player commands aliases that you want to trigger when executed. (Delimeter: |) ; !alias set/change <sound.wav> - Changes player sound. ; !alias remove - Remove player's join sound. ; !alias delay <decimal> - Sets player play delay. CommandTriggers=!js|!joinsnd|!snd ;AdminCommandTriggers: Type here the admin commands aliases that you want to trigger when executed. (Delimeter: |) ; !alias set/change <player name> <sound.wav> - Changes player sound. ; !alias remove <player name> - Remove player's join sound. ; !alias delay <player name> <decimal> - Sets player play delay. ; !alias show <player name> - Show player's join sound data. ; !alias clear - Removes all player datas. ; !alias save - Attempts to save changes on players datas. This is automatically executed when something changes. AdminCommandTriggers=!jsa|!joinsndadmin|!asnd ;AdminLevel: The required access level number to execute admin commands. AdminLevel=4 ;ClearLevel: The required access level number to clear player datas. This is seperated from Admin Level because of some cases. ClearLevel=6 ;DatabaseFile: File name that you want to store player's join sound information. DatabaseFile=Users.json ;MaxDelay: Maximum delay that a player can set. (in seconds, use ",") MaxDelay=10,0 ;MinDelay: Minimum delay that a player can set. (in seconds, use ",") MinDelay=1,0 ;DisableList: Type here the sound filenames to prevent users selecting. (Delimeter: |) DisableList=amb_airraid.wav ;GameLog: Logs a line like "_JOINSND <PlayerName> <SoundName>" when a join sound played. (NOT WHEN PLAYER JOINED!) GameLog=true
  12. Version 1.1

    0 downloads

    Are you struggling with your everyday development in C++? Do you suck with memory management or just the general hassle to get third party libraries for your custom Dragonade plugin? Well, no more! Introducing RenSharp for Dragonade This framework I created lets you make plugins for your FDS in .NET 4.7.2. You're probably wondering: will this need a heavily modified scripts.dll? I hear you and that's why I made sure it is bootstrapped by a regular Dragonade plugin. "Are there any other limitations?", is probably your next question. Very few, here they are: - You can only create custom classes (i.e. specialization of classes) for the classes I made support for. However the reach of this support is the same as you'd use in any normal Dragonade plugin (event classes, console functions, player observer, object observer, etc). - I only made support for the template classes that are used throughout scripts.dll. Any customizations on this are not supported. - Even though I added in some more safety nets to check for nulls etc. You can still fuck this up and make it crash horribly. Although the checks in place will also throw a managed exception and if not catched and handled will gracefully shutdown the FDS. - Some design choices removed some support. For example there is no 'const' concept. But these choices shouldn't really limit your imagination. - That's about it of what I can come up with on top of my head right now. With any plugin interface there are a few 'gotchas' and for RenSharp those are: - Inheritance is pretty much the same as you would in Dragonade. Except static initialization (using macros to register stuff) will not work in C#. Further explanation how this is handled is discussed in the example plugin. - All managed classes are basically handles to their C++ variants. You can bind the C++ pointer using the appropiate constructor which takes an IntPtr as an argument. These handle classes are not inheriting from IDisposable and assume they are not in charge of cleaning up that handle. If one of these handle classes is wrapped around an IUmanagedContainer<T> class that means that you MUST dispose them when you're done with them. As these containers indicate that you are indeed in charge of cleanup. - If you pass ownership of an unmanaged pointer to the C++ side (which does the memory management) you should make sure to release the pointer on the managed side. To make sure the garbage collector never disposes it. Likewise, when you keep ownership on the managed side, you should keep a reference to the object for as long as you want to keep it alive. - Don't call any methods or use properties of which you don't really know what they do. You can screw it up. Otherwise, if you consider yourself well versed in this stuff, go right ahead. - Any more gotchas or usage are pretty much discussed in the example plugin. How to get started? The only config this adds to da.ini is 'RenSharpPlugins'. You name managed plugin .dlls the same way as you would under 'Plugins'. To start RenSharp you also need to add 'da_RenSharp.dll' under 'Plugins'. Preferably on position 1. But that is up to you. Then follow one of the instructions below: The quickest way to get started is to just use any Visual Studio version that can handle .NET 4.7.2. (for VS2019 you can just use the Visual Studio Installer to install .NET 4.7.2.). Create a new .NET 4.7.2. C# class library and search for the NuGet package 'Neijwiert.RenSharp' (right-mouse click on your project and click Manage NuGet Packages...) and click Install. All Renegade stuff is placed under the RenSharp namespace. When the NuGet package is installed it shows a readme.txt on how to properly set your target platform. You then have to place YourPlugin.dll, da_RenSharp.dll, ManagedRenSharp.dll and ManagedScripts.dll in your FDS folder. You can find these .dlls in 'YourPlugin\packages\Neijwiert.RenSharp.1.0.0\content' and 'YourPlugin\packages\Neijwiert.RenSharp.1.0.0\lib'. The slow way is to compile it yourself. You can download the ZIP file with the source, or from GitHub. Compilation requires you to have C++/CLI build tools installed (use Visual Studio Installer) and .NET 4.7.2. (also use Visual Studio Installer). You can use a newer Visual Studio version as long as you have Visual Studio 2012 installed on your computer, with latest updates (whenever it prompts you to update the projects when you open the solution, you need to hit cancel). For the C++ stuff you need the same requirements as you would when you build Dragonade. Then you can just add a .NET 4.7.2. class library project and add a reference to 'ManagedScripts'. Make sure you configurate the class library to build as x86. Then you're ready to build and use everything. I pretty much made all this without drawing out a plan. I made some design mistakes and I also couldn't test everything due to the size of it. If you find anything broken/not working or stupidly designed message met and I see if I can get it fixed. This also applies for new feature requests. The best way to approach me would be via GitHub probably or a PM here. This cost me a lot of time and effort to make and I hope you guys are going to enjoy it and hopefully open up modding to some more less experienced coders. Everything is licensed under the Apache 2.0 license, which means you can do everything, but you must mention my name and include a copy of the license. I'm wide open to responses to this negative and positive, feel free to reply to this post. GitHub: https://github.com/Neijwiert/RenSharp NuGet: https://www.nuget.org/packages/Neijwiert.RenSharp
  13. Version 1.3

    11 downloads

    WARNING! This plugin only works with DA 1.98 and above! Download DA 1.98 from http://www.renegadeforums.com/index.php?t=tree&th=41243&start=0& This is the first and only Fund System plugin ever released in C&C Renegade forums. If a copy or redistributed type of this plugin spotted, the action will be taken. This plugin lets players fund their destroyed buildings with !fund command. Just put DLL to da.ini under [Plugins] section. You have to add the configuration which is at bottom to make this plugin work. To-Do List: - Fix ConstantFundAmount. - Make a command to take your fund from a building. This plugin made by MasterCan and I tested with my slave seifmagdi. If you find a bug, please find me on Discord "The Unstoppable (TR)#1000". CONFIGURATION: (You must add this to bottom of da.ini to make plugin work.) [Fund] ;Plugin made by MasterCan. ;This settings can be edited from game mode ini files as well. ;By default, these values will be used. ;Enable or disable funding system. EnableFund=1 ;Decide if the fund amounts of buildings are constant or increases when a player joins. ;Using values except 1 and 0 will automatically disables this option. ConstantFundAmount=0 ;If your constant fund amount is 0, you can determine how much price will be added when a player joins to fund cost. ;Max = 1.0, Min = 0.1, else multiplier will be set to 1. FundAddMultiplier=1.0 ; ---------------------------------- Building Fund Ticks ---------------------------------- ;If ConstantFundAmount is 1, specified amounts will be constant fund amount of buildings. ;If ConstantFundAmount is 0, building fund cost will be increased by specified amounts when player joins or changes team. ; ;Leaving fund enabled for a building and setting tick to 0 will cause plugin to misbehave. ; ----------------------------------------------------------------------------------------- Tick_PowerPlant=450 Tick_Refinery=500 Tick_VehicleFactory=600 Tick_SoldierFactory=550 Tick_Defense=575 Tick_ConYard=300 Tick_ComCenter=325 Tick_TibSilo=350 Tick_RepairPad=200 Tick_Shrine=175 ; -------------------------------- Building Fund Allowance -------------------------------- ; Specify the building funds you want to disable. ; Use 1, for enable funding. Use 0 for disabling. ; ; Using values except 1 and 0 automatically disables funding for that building. ; ----------------------------------------------------------------------------------------- Fund_PowerPlant=1 Fund_Refinery=1 Fund_VehicleFactory=1 Fund_SoldierFactory=1 Fund_Defense=1 Fund_ConYard=1 Fund_ComCenter=1 Fund_TibSilo=1 Fund_RepairPad=1 Fund_Shrine=1
  14. ya.... I could not connect the last couple days. Or this morning. Then I reinstalled again and it worked. So far, so good. thanks!
  15. @trumpetbum what exactly is the problem you are having? I saw you connected successfully to IRC.
  16. try it again, Cronus removed the module that. forces ssl
  17. what the hey... I've been using mIRC for at least a decade. Recently it wasn't connecting for me. I reloaded, restarted, etc etc Worked fine for a few days and now something else is wrong with it... May try once more, then go to Hexchat... but i always liked mIRC
  18. Spotted a IO problem while installing always.dat I am working on a fix to download large files.
  19. It's a patch that installs Russian language for renegade instead for English for those who speaks Russian.
  20. Version 1.1

    7 downloads

    This application installs Rusian Renegade patch made by seifmagdi with helps of MasterCan. If you have problems about installer, please report to me. If you have problems about patch, please report to seifmagdi.
  21. not sure what is going on with my IRC... searching for fixes..

     

    1. WNxServer

      WNxServer

      hey trumpet - it's a generall issue - on Chatbox shaitan already replied :D

    2. trumpetbum

      trumpetbum

      ah... I didnt see that.. thanks!

       

  22. hi... IRC won't let me connect.. i get this

    Untitled.jpg

  23. Version 1.0

    4 downloads

    The first WOL API written with C# by me. Thanks for Olaf @ xwis.net, ExEric3 and unknown for the contribution of this API! The download has 2 files. First is RenWOL_API.dll, which is API file, and WOLTestClient.exe WOLTestClient.exe depends on API file to work. You can test the API features with Test Client. The screenshot of this page is taken from Test Client. Please report the bugs to me from Discord (The Unstoppable (TR)#1065) or find me from MPF Discord http://multiplayerforums.com/discord You can ask your question to me from my Discord anytime. Documentation: API has 2 basic calls to receive server list. First, you have to login with the call specified below. This call logs into XWIS if the supplied parameters are valid. You must add the class name "WOLManager" for calling the calls listed below. They are members of "WOLManager" class. Example call for newbie n00bs: var LoginResult = WOLManager.Login("0669000000000000", "Example", "1234abcd"); Logging in: public static string Login(string serial, string username, string password) This call returns the codes below: - "success": Successfully logged into XWIS. - "apgar_error": Password encryption error. (Password length is wrong.) - "wrong_credentails": Credentails are wrong. - "read_error": Connection socket error. Probably server closed connection or network issue. - "no_need": API already logged in. - "api_error": Unhandled exception. (Please report the bug if you face with this code.) Retrieving server list: public static WOLConnection GetWOLData() This call return the WOL data with the servers. WOLConnection class returns WOL/XWIS host IP, Port, service name, and servers as a Collection that includes WOLServer class. If the code fails at a point, call returns the data it got so far. WOLServer class includes all of the server information received from WOL/XWIS. Sending page: public static string SendPage(string username, string message) The call above sends a page to user if user is online. This call returns the codes below: - "success": The page is successfully sent to receiver. - "error": Connection socket failed to send page command. - "user_offline": Receiving user is offline. - "need_login": API hadn't logged in and it needs to be logged in. - "api_error": Unhandled exception. (Please report the bug if you face with this code.) Logging out: public static string Logout() This call logs out the user if there is a logged in account. This call returns the codes below: - "success": The user is successfully logged out. - "error": Connection socket failed to send logout command. - "no_need": There are no users logged in. Joining into a channel: public static KeyValuePair<string, WOLServerData> JoinChannel(string channel) WARNING! This code is not yet fully completed and might behave uncorrectly if used inproperly. This call joins to a channel and returns the server data of the joined channel. The call returns a result text, and the Server Data if result is success. If the result is not success, Server Data will be null. This call's result text return the codes below: - "invalid_game": Channel not exist. - "join_error": API failed to join the specified channel. - "nat_error": API failed to get NAT results of the game. - "rginfo_error": API failed to get server data. - "success": The server data is successfully received. If the result text returns "nat_error" or "rginfo_error", It is preferred to call PartChannel() to prevent the bug(s) in your application. Leaving (parting) a channel: public static string PartChannel(string channel) This call leaves the channel specified. Specifying invalid channel name causes freeze. This call returns the codes below: - "success": Successfully left a channel. - "api_error": Unhandled exception. (Please report the bug if you face with this code.) Listing buddies: public static List<WOLUser> GetBuddies() This call gets all buddies you added from WOL/XWIS. WOLUser class contains buddies' nickname, status, and channel if s/he is in a channel. If the code fails at a point, call returns the data it got so far. Adding a buddy: public static string AddBuddy(string nick) This call adds a buddy to your WOL/XWIS account You have to get buddies for see the new buddy added. This call returns the codes below: - "success": Successfully added buddy. - "api_error": Unhandled exception. (Please report the bug if you face with this code.) Removing a buddy: public static string RemoveBuddy(string nick) This call removes a buddy from your WOL/XWIS account. This call returns the codes below: - "success": Successfully removed buddy. - "api_error": Unhandled exception. (Please report the bug if you face with this code.) Getting raw network stream between API <=> WOL/XWIS: public static NetworkStream GetStream() WARNING! This call is strictly unrecommended and it may cause bugs, crashes, freezes if used inproperly. Gets the client connection stream between the server and API.
  1. Load more activity
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.