What's new

AccMaker oraz TFS na wirtualnym Debianie.

Lisiornik

User
Joined
Jul 12, 2009
Messages
47
Reaction score
4
Witam. Mam najnowszego Crying Damsona 0.3.5 pl1 oraz gesiora gesior0.3.5fixv6.tar.gz.
Zainstalowa?em sobie Debiana na wirtualnej maszynie, kolega pom?g? mi przekompilowa? serwer. Znalaz?em wszystko co potrzeba, przerzuci?em accmakera do /var/www, ustawiam ?cie?k? i wyskakuje pi?kne cu?...
Code:
STEP 1
Check server configuration
Warning: fopen(config/config.ini) [function.fopen]: failed to open stream: Permission denied in /var/www/install.php on line 6
Warning: rewind(): supplied argument is not a valid stream resource in /var/www/install.php on line 11
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/install.php on line 12
Warning: fclose(): supplied argument is not a valid stream resource in /var/www/install.php on line 13
Warning: Error parsing /home/ots/ots/config.lua on line 17 in /var/www/install.php on line 150
File config.lua loaded from /home/ots/ots/config.lua and it's not valid TFS config.lua file. Go to STEP 1 - select other directory. If it's your config.lua file from TFS contact with acc. maker author.
Daj? wi?c wyci?g z Config.lua i prosz? o pomoc. ;(
Code:
-- The Forgotten Server Config
	-- Account manager
accountManager = "yes"
	namelockManager = "yes"
newPlayerChooseVoc = "yes"
	newPlayerSpawnPosX = 95
newPlayerSpawnPosY = 117
	newPlayerSpawnPosZ = 7
	newPlayerTownId 
= 1
	newPlayerLevel = 230
	newPlayerMagicLevel = 0
generateAccountNumber = "no"
	-- Unjustified kills
	-- NOTE: 
*Banishment and *BlackSkull variables are >summed up<
	-- 
(dailyFragsToRedSkull + dailyFragsToBanishment) with their
	-- 
*RedSkull equivalents.
	-- Auto banishing works only if useBlackSkull 
set to negative.
	redSkullLength = 30 * 24 * 60 * 60
blackSkullLength = 45 * 24 * 60 * 60
	dailyFragsToRedSkull = 3
weeklyFragsToRedSkull = 5
	monthlyFragsToRedSkull = 10
dailyFragsTweeklyFragsToBlackSkull = weeklyFragsToRedSkull
	monthlyFragsToBlackSkull = monthlyFragsToRedSkull
	dailyFragsToBanishment = dailyFragsToRedSkull
	weeklyFragsToBanishment = weeklyFragsToRedSkull
	monthlyFragsToBanishment = monthlyFragsToRedSkulloBlackSkull = dailyFragsToRedSkull
blackSkulledDeathHealth = 40
	blackSkulledDeathMana = 0
useBlackSkull = "yes"
	advancedFragList = "no"
	-- Banishments
-- violationNameReportActionType 1 = just a report, 2 = name lock, 3 = 
player banishment
	notationsToBan = 3
	warningsToFinalBan = 4
warningsToDeletion = 5
	banLength = 7 * 24 * 60 * 60
	finalBanLength = 
30 * 24 * 60 * 60
	ipBanishmentLength = 1 * 24 * 60 * 60
broadcastBanishments = "yes"
	maxViolationCommentSize = 200
violationNameReportActionType = 2
	autoBanishUnknownBytes = "no"
-- Battle
	-- NOTE: showHealingDamageForMonsters inheritates from 
showHealingDamage.
	-- loginProtectionPeriod is the famous Tibia 
anti-magebomb system.
	-- deathLostPercent set to nil enables manual 
mode.
	worldType = "pvp"
	protectionLevel = 1
pvpTileIgnoreLevelAndVocationProtection = "yes"
	pzLocked = 60 * 
1000
	huntingDuration = 60 * 1000
	criticalHitChance = 7
criticalHitMultiplier = 1
	displayCriticalHitNotify = "no"
removeWeaponAmmunition = "yes"
	removeWeaponCharges = "yes"
removeRuneCharges = "yes"
	whiteSkullTime = 15 * 60 * 1000
noDamageToSameLookfeet = "no"
	showHealingDamage = "no"
showHealingDamageForMonsters = "no"
	fieldOwnershipDuration = 5 * 
1000
	stopAttackingAtExit = "no"
	oldConditionAccuracy = "no"
loginProtectionPeriod = 10 * 1000
	deathLostPercent = 10
stairhopDelay = 2 * 1000
	pushCreatureDelay = 2 * 1000
deathContainerId = 1987
	gainExperienceColor = 215
addManaSpentInPvPZone = "yes"
	squareColor = 0
	allowFightback = 
"yes"
	-- Connection config
	worldId = 0
	ip = 
"*****************"
	bindOnlyConfiguredIpAddress = "no"
loginPort = 7171
	gamePort = 7172
	adminPort = 7171
statusPort = 7171
	loginTries = 10
	retryTimeout = 5 * 1000
loginTimeout = 60 * 1000
	maxPlayers = 1000
	motd = "Welcome 
to Alysia."
	displayOnOrOffAtCharlist = "no"
onePlayerOnlinePerAccount = "yes"
	allowClones = "no"
serverName = "Alysia"
	loginMessage = "Welcome to Alysia."
statusTimeout = 5 * 60 * 1000
	replaceKickOnLogin = "yes"
forceSlowConnectionsToDisconnect = "no"
	loginOnlyWithLoginServer 
= "no"
	premiumPlayerSkipWaitList = "no"
	-- Database
	-- NOTE: 
sqlFile is used only by sqlite database, and sqlKeepAlive by mysql 
database.
	-- To disable sqlKeepAlive such as mysqlReadTimeout use 
0 value.
	sqlType = "mysql"
	sqlHost = "localhost"
	sqlPort 
= 3306
	sqlUser = "****"
	sqlPass = "******"
	sqlDatabase = 
"ots"
	sqlFile = "forgottenserver.s3db"
	sqlKeepAlive = 0
mysqlReadTimeout = 10
	mysqlWriteTimeout = 10
	passwordType = "plain"
-- Deathlist
	deathListEnabled = "yes"
	deathListRequiredTime = 
1 * 60 * 1000
	deathAssistCount = 19
	maxDeathRecords = 5
	-- 
Guilds
	ingameGuildManagement = "yes"
	levelToFormGuild = 8
premiumDaysToFormGuild = 0
	guildNameMinLength = 4
guildNameMaxLength = 20
	-- Highscores
	highscoreDisplayPlayers 
= 15
	updateHighscoresAfterMinutes = 60
	-- Houses
buyableAndSellableHouses = "yes"
	houseNeedPremium = "yes"
bedsRequirePremium = "yes"
	levelToBuyHouse = 1
	housesPerAccount 
= 0
	houseRentAsPrice = "no"
	housePriceAsRent = "no"
housePriceEachSquare = 1000
	houseRentPeriod = "never"
guildHalls = "no"
	-- Item usage
	timeBetweenActions = 200
timeBetweenExActions = 1000
	checkCorpseOwner = "yes"
hotkeyAimbotEnabled = "yes"
	maximumDoorLevel = 500
	-- Map
-- NOTE: storeTrash costs more memory, but will perform alot faster 
cleaning.
	-- useHouseDataStorage usage may be found at README.
mapName = "ots5"
	mapAuthor = "Komic"
	randomizeTiles = "yes"
useHouseDataStorage = "no"
	storeTrash = "yes"
cleanProtectedZones = "yes"
	mailboxDisabledTowns = "-1"
	-- 
Startup
	-- NOTE: defaultPriority works only on Windows and 
niceLevel on *nix
	-- coresUsed are seperated by comma cores ids 
used by server process,
	-- default is -1, so it stays untouched 
(automaticaly assigned by OS).
	defaultPriority = "high"
niceLevel = 5
	coresUsed = "-1"
	optimizeDatabaseAtStartup = 
"yes"
	removePremiumOnInit = "yes"
	confirmOutdatedVersion = "no"
-- Muted buffer
	maxMessageBuffer = 4
bufferMutedOnSpellFailure = "no"
	-- Miscellaneous
	-- NOTE: 
promptExceptionTracerErrorBox works only with precompiled support 
feature,
	-- called "exception tracer" (__EXCEPTION_TRACER__ 
flag).
	-- monsterLootMessage 0 to disable, 1 - only party, 2 - only 
player, 3 - party or player (like Tibia's)
	dataDirectory = "data/"
allowChangeOutfit = "yes"
	allowChangeColors = "yes"
allowChangeAddons = "yes"
	disableOutfitsForPrivilegedPlayers = 
"no"
	bankSystem = "yes"
	saveGlobalStorage = "yes"
displaySkillLevelOnAdvance = "no"
	spellNameInsteadOfWords = "no"
emoteSpells = "no"
	promptExceptionTracerErrorBox = "yes"
storePlayerDirection = "no"
	monsterLootMessage = 3
monsterLootMessageType = 25
	-- Ghost mode
	ghostModeInvisibleEffect 
= "no"
	ghostModeSpellEffects = "yes"
	-- Limits
	idleWarningTime 
= 14 * 60 * 1000
	idleKickTime = 15 * 60 * 1000
expireReportsAfterReads = 1
	playerQueryDeepness = 2
maxItemsPerPZTile = 0
	maxItemsPerHouseTile = 0
	-- 
Premium-related
	freePremium = "yes"
	premiumForPromotion = 
"yes"
	-- Blessings
	-- NOTE: blessingReduction* regards 
items/containers loss.
	-- eachBlessReduction is how much each bless 
reduces the experience/magic/skills loss.
	blessingsOnlyPremium = 
"yes"
	blessingReductionBase = 30
	blessingReductionDecreament = 5
eachBlessReduction = 8
	-- Rates
	-- NOTE: 
experienceStages configuration is located in data/XML/stages.xml.
-- rateExperienceFromPlayers 0 to disable.
	experienceStages = "no"
rateExperience = 5.0
	rateExperienceFromPlayers = 0
	rateSkill = 3.0
rateMagic = 3.0
	rateLoot = 2.0
	rateSpawn = 1
	-- Experience 
from players
	-- NOTE: min~Threshold* set to 0 will disable the 
minimum threshold:
	-- player will gain experience from every lower 
leveled player.
	-- max~Threshold* set to 0 will disable the 
maximum threshold:
	-- player will gain experience from every higher 
leveled player.
	minLevelThresholdForKilledPlayer = 0.9
maxLevelThresholdForKilledPlayer = 1.1
	-- Stamina
	-- NOTE: 
Stamina is stored in miliseconds, so seconds are multiplied by 1000.
-- rateStaminaHits multiplies every hit done a creature, which are 
later
	-- multiplied by player attack speed.
	-- rateStaminaGain is 
multiplying every second of logged out time, eg:
	-- 60 * 1000 / 3 
= 20 seconds, what gives 1 stamina minute for 3 being logged off.
-- rateStaminaThresholdGain is dividing in case the normal gain (that 
is
	-- multiplied by rateStaminaGain, btw.) passed above threshold, 
eg:
	-- 60 * 1000 / 3 = 20 / 4 = 5 seconds (3 * 4 = 12 minutes for 1 
stamina minute).
	-- staminaRatingLimit* is in minutes.
rateStaminaLoss = 1
	rateStaminaGain = 1000 / 3
rateStaminaThresholdGain = 4
	staminaRatingLimitTop = 41 * 60
staminaRatingLimitBottom = 14 * 60
	rateStaminaAboveNormal = 1.5
rateStaminaUnderNormal = 0.5
	staminaThresholdOnlyPremium = "yes"
-- Party
	-- NOTE: experienceShareLevelDifference is float 
number.
	-- experienceShareLevelDifference is highestLevel * 
value
	experienceShareRadiusX = 30
	experienceShareRadiusY = 30
experienceShareRadiusZ = 1
	experienceShareLevelDifference = 2 / 3
extraPartyExperienceLimit = 20
	extraPartyExperiencePercent = 5
experienceShareActivity = 2 * 60 * 1000
	-- Global save
	-- NOTE: 
globalSaveHour means like 03:00, not that it will save every 3 hours,
-- if you want such a system please check out 
data/globalevents/globalevents.xml.
	globalSaveEnabled = "no"
globalSaveHour = 8
	shutdownAtGlobalSave = "yes"
cleanMapAtGlobalSave = "no"
	-- Spawns
	deSpawnRange = 2
deSpawnRadius = 50
	-- Summons
	maxPlayerSummons = 2
teleportAllSummons = "no"
	teleportPlayerSummons = "no"
	-- 
Status
	ownerName = ""
	ownerEmail = "@otland.net"
	url = 
"http://otland.net/"
	location = "Europe"
displayGamemastersWithOnlineCommand = "no"
	-- Logs
	-- NOTE: 
This kind of logging does not work in GUI version.
	-- For such, 
please compile the software with __GUI_LOGS__ flag.
	adminLogsEnabled 
= "no"
	displayPlayersLogging = "yes"
	prefixChannelLogs = ""
	runFile 
= ""
	outLogName = ""
	errorLogName = ""
truncateLogsOnStartup = "no"

Dodaje tez Install php, przynajmniej te pierwsze linijki, kr?re b??d wyrzuca.

Code:
<?PHP
$config['site'] = parse_ini_file('config/config.ini');
session_start();
//save config in ini file
function saveconfig_ini($config) {
$file = fopen("config/config.ini", "w");
foreach($config as $param => $data) {
$file_data .= $param.' = "'.str_replace('"', '', $data).'"
';
}
rewind($file);
fwrite($file, $file_data);
fclose($file);
}

function check_password($pass)
{
  $temp = strspn("$pass", "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890");
  if ($temp != strlen($pass)) {
  return false;
  }
  else
  {
  $ok = "/[a-zA-Z0-9]{1,40}/";
  return (preg_match($ok, $pass))? true: false;
  }
}

function password_ency($password)
{
	$ency = $GLOBALS['passwordency'];
	if($ency == 'sha1')
		return sha1($password);
	elseif($ency == 'md5')
		return md5($password);
	elseif($ency == '')
		return $password;
}

if($_REQUEST['page'] == '' && !isset($_REQUEST['step'])) {
echo '<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
	<title>Installation of account maker</title>
</head>
<frameset cols="230,*">
	<frame name="menu" src="install.php?page=menu" />
	<frame name="step" src="install.php?page=step&step=0" />
	<noframes><body>Frames don\'t work. Install Firefox :P</body></noframes>
</frameset>
</html>';
}
if($_REQUEST['page'] == 'menu') {
echo '<h2>MENU</h2><br>
<b>IF NOT INSTALLED:</b><br>
<a href="install.php?page=step&step=start" target="step">0. Informations</a><br>
<a href="install.php?page=step&step=1" target="step">1. Set server path</a><br>
<a href="install.php?page=step&step=2" target="step">2. Check DataBase connection</a><br>
<a href="install.php?page=step&step=3&server_conf=yes" target="step">3. Add tables and columns to DB</a><br>
<a href="install.php?page=step&step=4&server_conf=yes" target="step">4. Add samples to DB</a><br>
<a href="install.php?page=step&step=5&server_conf=yes" target="step">5. Set Admin Account</a><br>
<b>FOR ADMINS:</b><br>
<a href="index.php?subtopic=adminpanel&action=install_monsters" target="step">6. Load Monsters from OTS</a><br>
 

piti129

Advanced User
Joined
Apr 4, 2008
Messages
242
Reaction score
39
Odp: AccMaker oraz TFS na wirtualnym Debianie.

Jedno slowo chmod-y :>

chmod 777 www -R
 

Lisiornik

User
Joined
Jul 12, 2009
Messages
47
Reaction score
4
Odp: AccMaker oraz TFS na wirtualnym Debianie.

Thx, do zamkniecuia.
 
Top