KingSteve032 Posted March 27, 2013 Share Posted March 27, 2013 So I've been try to set up TCAdmin and WHMCS to sell minecraft by the slot and a certain amount of slots have a certain amount of RAM. I've been using this config but doesn't seem to be working. Is there something wrong with this config? Also is there a way to get tcadmin to not skip ports when creating a game? I don't want it to from 25565 to 25575 but I want it to from 25565 to 25566. <?php include('default_values.php'); switch ($params["configoptions"]["Slots"]) { case "4": $billing_api_values["gamevar_Xms"] = "256"; $billing_api_values["gamevar_Xmx"] = "256"; break; case "8": $billing_api_values["gamevar_Xms"] = "512"; $billing_api_values["gamevar_Xmx"] = "512"; break; case "12": $billing_api_values["gamevar_Xms"] = "768"; $billing_api_values["gamevar_Xmx"] = "768"; break; case "16": $billing_api_values["gamevar_Xms"] = "1024"; $billing_api_values["gamevar_Xmx"] = "1024"; break; case "20": $billing_api_values["gamevar_Xms"] = "1280"; $billing_api_values["gamevar_Xmx"] = "1280"; break; case "24": $billing_api_values["gamevar_Xms"] = "1536"; $billing_api_values["gamevar_Xmx"] = "1536"; break; case "28": $billing_api_values["gamevar_Xms"] = "1792"; $billing_api_values["gamevar_Xmx"] = "1792"; break; case "32": $billing_api_values["gamevar_Xms"] = "2048"; $billing_api_values["gamevar_Xmx"] = "2048"; break; case "36": $billing_api_values["gamevar_Xms"] = "2304"; $billing_api_values["gamevar_Xmx"] = "2304"; break; case "40": $billing_api_values["gamevar_Xms"] = "2560"; $billing_api_values["gamevar_Xmx"] = "2560"; break; case "44": $billing_api_values["gamevar_Xms"] = "2816"; $billing_api_values["gamevar_Xmx"] = "2816"; break; case "48": $billing_api_values["gamevar_Xms"] = "3702"; $billing_api_values["gamevar_Xmx"] = "3702"; break; } Link to comment Share on other sites More sharing options...
CloudCUBE Posted March 28, 2013 Share Posted March 28, 2013 Change the port increment in the games config Have you edited configurable options so ConfigOption:Slots is PUB8|8 Slots and so on. You should be able to send the Slot Command and those variables ontop should be picked up. Link to comment Share on other sites More sharing options...
KingSteve032 Posted March 28, 2013 Author Share Posted March 28, 2013 No I haven't I'll try both of those and will report back. Thanks! Link to comment Share on other sites More sharing options...
KingSteve032 Posted May 17, 2013 Author Share Posted May 17, 2013 Alright so when I accept a order in WHMCS I get this error. "Order Accept Encountered Problems No results were returned. Check your TCAdmin logs. URL used: urltotcadmin/billingapi.aspx" Link to comment Share on other sites More sharing options...
Raizio Posted May 17, 2013 Share Posted May 17, 2013 Check the API log, see what error it gives. Link to comment Share on other sites More sharing options...
KingSteve032 Posted July 18, 2013 Author Share Posted July 18, 2013 In WHMCS: Order Accept Encountered Problems No results were returned. Check your TCAdmin logs. URL used: ServerURLremoved/billingapi.aspx Then TCadmin says: function=AddPendingSetup System.Exception: ACCESS DENIED: webserverIPaddresshere Included Account Info: False at Web.GameHosting.billingapi.Page_Load (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0 So what is happening? Thanks for any help. Link to comment Share on other sites More sharing options...
Raizio Posted July 18, 2013 Share Posted July 18, 2013 Did you set the right login information in WHMCS to the TCAdmin server? Link to comment Share on other sites More sharing options...
KingSteve032 Posted July 18, 2013 Author Share Posted July 18, 2013 I did. Everything else work between the two. Link to comment Share on other sites More sharing options...
CloudCUBE Posted July 19, 2013 Share Posted July 19, 2013 Have you enabled the billing api in the gamepanel? Link to comment Share on other sites More sharing options...
KingSteve032 Posted July 19, 2013 Author Share Posted July 19, 2013 Yep, everything that is required for WHMCS and TCadmin to work together is on. Link to comment Share on other sites More sharing options...
LFA Posted July 20, 2013 Share Posted July 20, 2013 In WHMCS: Order Accept Encountered Problems No results were returned. Check your TCAdmin logs. URL used: ServerURLremoved/billingapi.aspx Then TCadmin says: function=AddPendingSetup System.Exception: ACCESS DENIED: webserverIPaddresshere Included Account Info: False at Web.GameHosting.billingapi.Page_Load (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown="">:0 So what is happening? Thanks for any help. "Included </filename><filename unknown="">Account Info: False" means WHMCS is not even sending the tcadmin login. If you are using a custom config file make sure you include default_values.php. http://help.tcadmin.com/TCAdmin2_advanced_module_for_WHMCS#Custom_Config_File </filename> Link to comment Share on other sites More sharing options...
KingSteve032 Posted July 20, 2013 Author Share Posted July 20, 2013 Well that wiki page kinda help after seeing I didn't have the beginning part of a php file and the ending part in the script. lol Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.