Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.

  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

PokeMod


  • Zamknięty Temat jest zamknięty
4 odpowiedzi w tym temacie

#1 mis

    Życzliwy

  • Użytkownik

Reputacja: 1
Nowy

  • Postów:25
  • GG:
  • Lokalizacja:Olsztyn
Offline

Napisano 30.03.2010 12:11

siemka,
lud prosił mnie, żebym zrobił serwer PokeMod'a.
osobiście nie grałem na tym modzie, więc nie wiem co i jak, jednak mam problem już z samym pluginem.

chcę by statystyki były w bazie.
według mnie wszystko ok zrobiłem,

custom.ini :
#define SAVE SAVE_MYSQL

pokemod.cfg:

pm_mysql_host "xxx"
pm_mysql_user "xxx"
pm_mysql_pass "xxx"
pm_mysql_db "xxx"

jednak ciągle jest błąd i nie tworzy tabel w bazie:

L 03/30/2010 - 13:06:55: [pokemod.amxx] Error Making Tables: 'near "binary": syntax error' - 'CREATE TABLE `pm_save` ( `SAVE_KEY` varchar(34) binary NOT NULL default '', `XPS` varchar(255) binary NOT NULL default '', `LAST_PLAY_DATE` timestamp(14) NOT NULL, PRIMARY KEY (`SAVE_KEY`) ) TYPE=MyIS
L 03/30/2010 - 13:06:55: [pokemod.amxx] No Ranks Loaded: 'no such table: pm_save'
L 03/30/2010 - 13:06:56: [pokemod.amxx] Error Querying MySQL DB for Rank 0: 'no such table: pm_save' - 'SELECT * FROM `pm_save` WHERE `SAVE_KEY` = '_Rank0''
L 03/30/2010 - 13:06:57: [pokemod.amxx] Invalid Skill ''
L 03/30/2010 - 13:06:57: [pokemod.amxx] Invalid Skill ''
L 03/30/2010 - 13:06:57: [pokemod.amxx] Invalid Skill ''
L 03/30/2010 - 13:07:02: [pokemod.amxx] "mis<3><STEAM_0:0:17459022><None>" Error Querying MySQL DB for 77.255.255.143: 'no such table: pm_save' - 'SELECT `XPS` FROM `pm_save` WHERE `SAVE_KEY` = '77.255.255.143''


z tego co widzę ogólnie, także jest zapis na IP, jak to zmienić??
wiem, było pisane że w custom.ini, jednak tam nie ma nic takiego.

co do wersji :
pokemod_123rc

pozdrawiam.
mis
  • +
  • -
  • 0

Kokodzambo [4Fun]31.186.83.179:27196

Kokodzambo [Paintball][Klasy][Itemy] - 37.187.100.169:27015

 

 

#2 Luffy

    Zaawansowany

  • Użytkownik

Reputacja: 13
Początkujący

  • Postów:100
  • Steam:steam
  • Imię:Michał
  • Lokalizacja:Poznań
Offline

Napisano 30.03.2010 14:22

Można wybrać zapis: Steam ID lub na Nick
Zmienia się to w pliku custom.inl
Szukamy linijki:

//how to save data ( 0 - steamid ; 1 - nickname )
#define SAVE_ID 0



pokaż plik custom.ini
  • +
  • -
  • 0

#3 mis

    Życzliwy

  • Autor tematu
  • Użytkownik

Reputacja: 1
Nowy

  • Postów:25
  • GG:
  • Lokalizacja:Olsztyn
Offline

Napisano 30.03.2010 17:41

/////////////////////////////////////////////////
// ONLY CHANGE IF YOU KNOW WHAT YOURE DOING! //
/////////////////////////////////////////////////

#if defined _pokemod_custom_included
#endinput
#endif
#define _pokemod_custom_included

/////////////////////////////////
enum // //
{ // //
CS, // Do NOT Edit //
DOD, // These //
NS // //
} // //
/////////////////////////////////////////
enum // //
{ // //
SAVE_VAULT, // Do NOT Edit //
SAVE_MYSQL, // These //
SAVE_SQLX, // //
SAVE_NVAULT // //
} // //
/////////////////////////////////////////////////////////////////////////////////////////////
#define MOD CS // Edit this to which game you are going to be using (from the above) //
/////////////////////////////////////////////////////////////////////////////////////////////
#define SAVE SAVE_MYSQL // Edit this to which saving type you want (from the above) //
/////////////////////////////////////////////////////////////////////////////////////////////

//reading in the xp_table.ini will not go above this
#define MAX_LEVELS 500

//max pokemon you can register with pokemod
#define TOTAL_POKES 200

//max items you can register with pokemod
#define MAX_ITEMS 200

//how much of the original price is given back for selling items
#define SELLFACTOR 0.5

//max speed they can be running at (default 700)
#define MAX_SPEED 700
//how much speed is added for things (deafult 100)
#define FASTSPEED 100
//how much speed is subtracted for things (default 150)
#define SLOWSPEED 150

//max amount of money someone can have
#define MAX_MONEY 16000

//didn't know what to call this, but heres how it works
// 0 - when someone "catches" their pokemon, they lose theirs. when someone gives their pokemon away, they lose it.
// 1 - when someone "catches" their pokemon, they keep theirs. when someone gives their pokemon away, they lose it.
// 2 - when someone "catches" their pokemon, they keep theirs. when someone gives their pokemon away, they keep it.
// For example using POKE_POPULATION 1:
// Player A has Gyarados and Player B catches A's Gyarados, there are now 2 Gyarados on the map.
// Player B then gives Player C his Gyarados. There are still only 2 Gyarados on the map.
#define POKE_POPULATION 1

//should players receive the same ammount of xp as the one they catch
// 1 - when someone catches a level 32 pidgey, they will receive a level 32 pidgey
// 0 - when someone catches a level 32 pidgey, they will receive a level 1 pidgey
#define POKEMON_CATCH_XP 0

//if a pokemon loses experience to below when it evolved, does it un-evolve
#define POKEMON_UNEVOLVE 0

//what level bots pokemon start at
#define BOT_START_LEVEL 5

//are players able to catch special pokemon from others? 1=yes 0=no
#define CATCH_SPECIAL 1
//are special pokemon only able to be used by admins? 1=admin only 0=anyone can use
#define ADMIN_SPECIAL 0

//teleport back to spawn when you catch a pokemon?
// 0 - never teleport
// 1 - teleport only when you pick up a pokeball
// 2 - always teleport when you catch something (pick up pokeball or use pokeball to catch someone)
#define CATCH_TELEPORT 0

//allow players to go /wild and /trainer? (1==yes ; 0==no)
#define ALLOW_WILD 1

//max amount of items a player can buy at one time (default:20) set to 0 to ignore
#define MAX_AMOUNT_TO_BUY 20

//max number of a single item that someone can have
#define MAX_ITEM_AMOUNT 20

//max number of items that someone can have in total
#define MAX_ITEM_TOTAL 100

//if users have more HP than this, no pokeskill will kill them immediately
#define HP_KILL_ALLOW 50

//should items be used automatically
// 0 - no items are used automatically
// 1 - only for bots
// 2 - items are used automatically for everyone
#define AUTO_ITEMS 2

//do players awaken if they are damaged through weapons in-game
#define DAMAGE_AWAKEN 0
//do players awaken if they are damaged through pokemon damage
#define POKEDAMAGE_AWAKEN 0

//use the pokerank system? (1=yes 0=no)
#define POKERANK_SYSTEM 1
//how many ranks will you have? (note that the top player will be PokeMaster, and the next top 4 will be the Elite Four
#define MAX_RANKS 11
//Note that if someone levels a pokemon from 1 to 99, they will get 4950 points
stock const PokeRanks[MAX_RANKS]={
0,
325,
2850,
11325,
80200,
180300,
720600,
1500000,
2500000,
5000000,
10000000
}
stock const PokeRankNames[MAX_RANKS][]={
"Pokemon Finatic",
"Pokemon Trainer",
"Advanced Trainer",
"Extreme Trainer",
"Master Trainer",
"Legendary Trainer",
"Pokemon Guru",
"Advanced Guru",
"Extreme Guru",
"Master Guru",
"Legendary Guru"
}

//whether people can change pokemon when they're alive
// 0 - they can always change pokemon
// -1 - bots can only change once (this prevents occasional switch spam from bots)
// 1 and higher - everyone can only change this many times
#define CHANGE_POKES 10

//delay given to pokeskills after being spawned
#define SPAWN_DELAY 5.0
//delay given to pokeskills when changing pokemon
#define CHANGE_DELAY 5.0

//how many seconds pass before a pokemon is released for sure
#define RELEASE_TIME 60.0
//allow people to say /release and get a menu to release? (1==yes 0==no)
#define RELEASE_MENU 1

//should admin commands be prefixed with pm_
//1 - pm_
//0 - amx_ - doesn't filter commands in pm_help
#define PM_ADMIN_COMMANDS 1

//should pokemod cvars be prefixed with pm_
//1 - pm_
//0 - amx_
#define PM_CVAR_PREFIX 1

//change the game name from Counter-Strike, Natural Selection, etc.
#define CHANGE_GAME_NAME 1
//what to change the game name to
#define GAME_NAME "PokeMod"

// Armor Takes 80% of the damage (0.2 in the SDK)
#define ARMOR_RATIO 0.2
// Each Point of Armor is worth 1/x points of health (0.5 in the SDK)
#define ARMOR_BONUS 0.5

//if a special pokemon is going to be in a pokeball on the ground,
//this is the chance out of 100 that it will stay a special pokemon.
//set to 0 for no special pokemon on ground
#define POKEBALL_SPECIAL 30

//how many pokeballs to spawn at the spawns
#define POKEBALL_NUMBER 5

//should pokeballs be respawned when someone picks up a pokeball? (1=yes, 0=no)
#define POKEBALL_RESPAWN 1

//block player messages dealing with pokemod? (1=yes, 0=no)
#define CHAT_SPAM 0

// How rare candy items work -
// 1 - add a level to the current pokemon (does not save to pokemon)
// 2 - give to a pokemon and they level up
// 3 - both
#define RARE_CANDY_MODE 1

// Random items on death
// 0 - no random items
// 1 - for a random item
// 2 - for a random item based on price. items with lower prices are more likely (items with no price have a chance as if it costed the most)
#define RANDOM_ITEMS 2

//chance out of 100 that players will drop a random item (set to negative to only allow items that can be bought)
#define RANDOM_CHANCE 30

//time that players need to wait inbetween using skills
#define SKILL_SPAM 0.5

//when someone releases the pokeskill button, should it "unspam" them (allow to use immediately again)[this can be abused if yes] (1==yes;0==no)
#define SKILL_UNSPAM 0

//should tempents (special effects) be sent to spectators? (1==yes;0==no)
#define SPEC_MSGS 0

//max level a pokemon can be caught at (if set to 50, 51+ can't be caught, set to 0 to disable)
#define MAX_CATCH_LEVEL 75

//how many rounds should go by without saving
//if set to 0, round saving will not occur
//if set to a negative number, random players will save each round (the number is how many players will save)
#define SAVE_ROUNDS -3

//time that players need to wait inbetween saving, this will prevent saving happening a lot and creating lag
#define SAVE_SPAM 60.0

//only admins with rcon access can change other peoples pokemon
#define RCON_POKEADMINS 1

//have pokemod register with EAM (Extendable Admin Menu)
#define EAM_MENU 1



Użytkownik mis edytował ten post 30.03.2010 17:42

  • +
  • -
  • 0

Kokodzambo [4Fun]31.186.83.179:27196

Kokodzambo [Paintball][Klasy][Itemy] - 37.187.100.169:27015

 

 

#4 Abes Mapper

    Repulsion Gel

  • Przyjaciel

Reputacja: 1996
Godlike

  • Postów:7356
  • Steam:steam
  • Imię:Sebastian
  • Lokalizacja:Sulejówek
Offline

Napisano 30.03.2010 18:04

Zainstaluj najnowszą wersję:
PokeMod v1.2.3 RC + RC2 Test for Public - Nieoficjalny polski support AMX Mod X
  • +
  • -
  • 0

#5 mis

    Życzliwy

  • Autor tematu
  • Użytkownik

Reputacja: 1
Nowy

  • Postów:25
  • GG:
  • Lokalizacja:Olsztyn
Offline

Napisano 01.04.2010 12:57

instalowałem już chyba każdą wersję i żadna nie zapisuje mi nic w MySqlu.
nie wiem dlaczego.
co do zapisu na nick, to tylko ta paczka posiada to:
1.2.3rc2test.zip

01 kwiecień 2010 - 12:57:
z tym sobie poradziłem, ale mam kolejne pytanie, czy ktoś może opisać statysytki które zapisują się w bazie, np:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 : 1270067913 : 0 0 : 0

co od czego jest??
  • +
  • -
  • 0

Kokodzambo [4Fun]31.186.83.179:27196

Kokodzambo [Paintball][Klasy][Itemy] - 37.187.100.169:27015

 

 




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych