N-BR
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Tool PKM Stadium Funcionando

4 participantes

Ir para baixo

Tool PKM Stadium Funcionando Empty Tool PKM Stadium Funcionando

Mensagem  Kamppello Qui 24 Jan 2013, 22:14

Pqp, finalmente consegui!!! Faltam alguns ajustes aqui ali e tal. O foda é que ela só trabalha com partes da Rom, preciso desenvolver algo para extrair e inserir esses partes, são umas 200, pra fazer esse bagaça manual vai dar muito trabalho.
O bom é que funciona no PKM 1 e 2, no 007 TWINE e num Mario que não lembro o nome agora.

Tool PKM Stadium Funcionando Pkmtool

Modelo atual dos scripts, esses null são os enstrings.
Kamppello
Kamppello
Administrador NBR
Administrador NBR

Masculino Mensagens : 927
Membro desde : 28/09/2010
Idade : 36
Cidade : Recanto das Emas
Brasil


http://nbr-traducoes.blogspot.com/

Ir para o topo Ir para baixo

Tool PKM Stadium Funcionando Empty Re: Tool PKM Stadium Funcionando

Mensagem  DorzeR Qui 24 Jan 2013, 23:17

Legal com isso da pra dar mais um passo pra fazer o Stadium 2 e de bonus um jogo do Mario kkkk
DorzeR
DorzeR
Moderador NBR
Moderador NBR

Masculino Mensagens : 251
Membro desde : 25/03/2012
Idade : 29
Cidade : Colinas do Tocantins
Brasil


Ir para o topo Ir para baixo

Tool PKM Stadium Funcionando Empty Re: Tool PKM Stadium Funcionando

Mensagem  Quil Qui 24 Jan 2013, 23:58

Fala Kamppello.

Esse é o esquema de formatação que os scripts, do pokemon Stadium terão quando forem extraídos?
Quil
Quil
Moderador NBR
Moderador NBR

Masculino Mensagens : 425
Membro desde : 06/12/2010
Cidade : At World's End.
Brasil


Ir para o topo Ir para baixo

Tool PKM Stadium Funcionando Empty Re: Tool PKM Stadium Funcionando

Mensagem  Kamppello Sex 25 Jan 2013, 08:51

Uhum, por enquanto sim, mas pretendo deixar eles mais ou menos assim:

Código:
<!--Linha 25-->
<p>There move is DISABLED!</p>
<!--Linha 26-->
<p>There's no PP left for this move!</p>
Kamppello
Kamppello
Administrador NBR
Administrador NBR

Masculino Mensagens : 927
Membro desde : 28/09/2010
Idade : 36
Cidade : Recanto das Emas
Brasil


http://nbr-traducoes.blogspot.com/

Ir para o topo Ir para baixo

Tool PKM Stadium Funcionando Empty Re: Tool PKM Stadium Funcionando

Mensagem  L-Slayer Sex 25 Jan 2013, 21:23

Bacana velho! Tá usando qual linguagem? Depois posta o código fonte, pra quem quer aprender usar o seu como base! Exclamação
Parabéns
L-Slayer
L-Slayer
Administrador NBR
Administrador NBR

Masculino Mensagens : 156
Membro desde : 28/09/2010
Idade : 33
Cidade : Mateus Leme
Brasil


Ir para o topo Ir para baixo

Tool PKM Stadium Funcionando Empty Re: Tool PKM Stadium Funcionando

Mensagem  Kamppello Sáb 26 Jan 2013, 00:03

Tó usando PHP, mano Slayer.

Não está 100% ainda, mas ai está o código fonte:

Arquivo game
Código:
<?php

$langs = array(
    "EN",
//    "SP"
);

$files = array(
    "arquivos/EN/Bloco 1.bin",
    "arquivos/EN/Bloco 2.bin",
    "arquivos/EN/Bloco 3.bin",
    "arquivos/EN/Bloco 4",
    "arquivos/EN/Bloco 5",
    "arquivos/EN/Bloco 6.bin",
    "arquivos/EN/Bloco 7",
    "arquivos/EN/Bloco 8",
    "arquivos/EN/Bloco 9",
    "arquivos/EN/Bloco 10",   
    "arquivos/EN/Bloco 11",
    "arquivos/EN/Bloco 12",
    "arquivos/EN/Bloco 13",
    "arquivos/EN/Bloco 14",
    "arquivos/EN/Bloco 15",
    "arquivos/EN/Bloco 16",
    "arquivos/EN/Bloco 17",
    "arquivos/EN/Bloco 18",
    "arquivos/EN/Bloco 19",
    "arquivos/EN/Bloco 20",
 
);

?>
Arquivo Dumper
Código:
<?php

include_once 'game.php';
include_once 'util.php';
require_once 'PK.php';

foreach ($langs as $lang){
    foreach ($files as $file){
        $file = sprintf($file,$lang);
        echo( $file . "\n" );
       
        $bin = loadFile(getDirBinOriginal() . $file);
       
        $txt = PK::dumper($bin);
       
        saveFile(getDirTxtOriginal() . $file . ".txt" , $txt);
       
    }
}

?>
Arquivo Inserter
Código:
<?php

include_once 'game.php';
include_once 'util.php';
require_once 'PK.php';

foreach ($langs as $lang){
    foreach ($files as $file){
        $file = sprintf($file,$lang);
        echo( $file . "\n" );
       
        $bin = loadFile(getDirBinOriginal() . $file);
       
        $txt = PK::dumper($bin);
       
        saveFile(getDirTxtOriginal() . $file . ".txt" , $txt);
       
    }
}

?>
Arquivo PK
Código:
<?php

class PK{
    public static function dumper($bin){
        $txt = "";
   
        $qtdDialogos = substr($bin, 0, 4);
        $qtdDialogos = bin32ToDec($qtdDialogos);
       
        $offsets = array();

        for($i = 0; $i< $qtdDialogos; $i++){
            $offset = substr($bin, 4 + (4 * $i), 4);
            $offset = bin32ToDec($offset);
            $offsets[$i] = $offset;
        }
       
        $dialogs = array();

        for($i = 0; $i< $qtdDialogos; $i++){
            if ($i == ($qtdDialogos - 1)){
                $dialog = substr($bin, $offsets[$i]);
            }else{
                $dialog = substr($bin, $offsets[$i], $offsets[$i+1]- $offsets[$i] );
            }
            $dialogs[$i] = $dialog;
        }
       

        for($i = 0; $i< $qtdDialogos; $i++){
            $txt .= "\r\n<!--Linha $i-->\r\n";
              $txt .= "$dialogs[$i]";
       

        }
       

        return $txt;

    }
   
    static function toBin32($dec){
        $hex = dechex($dec);
       
        while (strlen("$hex") < 8){
            $hex = "0" . $hex;
        }
       
        $bin = hex2bin($hex);
        return $bin;
    }

    public static function insert($txt){
        $bin = "";
       
        $DialogsBlock = "";
       
      $temp = explode("\r\n", $txt);
     
      $dialogs = array();
      for($i = 0; $i < count($temp);$i++){
          if ( ($i % 2) == 0 ){
              array_push($dialogs, $temp[$i]);
          }
      }
       
      $qtdponteiros = ((count($dialogs))*4); // conta a quantidade de ponteiros e multiplica pelo tamanho do mesmo

      $DialogsBlock .= self:: toBin32(count($dialogs)-1); // subtrai 1 da quantidade de ponteiros
     
      $lastOffset = 0;
      $lastOffset = $lastOffset + $qtdponteiros;
           
      for($i = 1; $i < count($dialogs);$i++){ //subtrai quatro bytes dos ponteiros
          $DialogsBlock .= self::toBin32($lastOffset);
          $lastOffset += strlen($dialogs[$i]);
      }
     
      for($i = 0; $i < count($dialogs);$i++){
        $DialogsBlock .= $dialogs[$i];
      }
           
      return $DialogsBlock;
    }
   
}
?>
Fiz tudo com base no tutorial do __Ray__ Link

Os script estão sendo extraídos desse jeito:
Ataques
Código:
<!--Linha 0-->
POUND
<!--Linha 1-->
KARATE CHOP
<!--Linha 2-->
DOUBLESLAP
<!--Linha 3-->
COMET PUNCH
<!--Linha 4-->
MEGA PUNCH
<!--Linha 5-->
PAY DAY
<!--Linha 6-->
FIRE PUNCH
<!--Linha 7-->
ICE PUNCH
<!--Linha 8-->
THUNDERPUNCH
<!--Linha 9-->
SCRATCH
<!--Linha 10-->
VICEGRIP
<!--Linha 11-->
GUILLOTINE
<!--Linha 12-->
RAZOR WIND
<!--Linha 13-->
SWORDS DANCE
<!--Linha 14-->
CUT
<!--Linha 15-->
GUST
<!--Linha 16-->
WING ATTACK
<!--Linha 17-->
WHIRLWIND
<!--Linha 18-->
FLY
<!--Linha 19-->
BIND
<!--Linha 20-->
SLAM
<!--Linha 21-->
VINE WHIP
<!--Linha 22-->
STOMP
<!--Linha 23-->
DOUBLE KICK
<!--Linha 24-->
MEGA KICK
<!--Linha 25-->
JUMP KICK
<!--Linha 26-->
ROLLING KICK
<!--Linha 27-->
SAND-ATTACK
<!--Linha 28-->
HEADBUTT
<!--Linha 29-->
HORN ATTACK
<!--Linha 30-->
FURY ATTACK
<!--Linha 31-->
HORN DRILL
<!--Linha 32-->
TACKLE
<!--Linha 33-->
BODY SLAM
<!--Linha 34-->
WRAP
<!--Linha 35-->
TAKE DOWN
<!--Linha 36-->
THRASH
<!--Linha 37-->
DOUBLE-EDGE
<!--Linha 38-->
TAIL WHIP
<!--Linha 39-->
POISON STING
<!--Linha 40-->
TWINEEDLE
<!--Linha 41-->
PIN MISSILE
<!--Linha 42-->
LEER
<!--Linha 43-->
BITE
<!--Linha 44-->
GROWL
<!--Linha 45-->
ROAR
<!--Linha 46-->
SING
<!--Linha 47-->
SUPERSONIC
<!--Linha 48-->
SONICBOOM
<!--Linha 49-->
DISABLE
<!--Linha 50-->
ACID
<!--Linha 51-->
EMBER
<!--Linha 52-->
FLAMETHROWER
<!--Linha 53-->
MIST
<!--Linha 54-->
WATER GUN
<!--Linha 55-->
HYDRO PUMP
<!--Linha 56-->
SURF
<!--Linha 57-->
ICE BEAM
<!--Linha 58-->
BLIZZARD
<!--Linha 59-->
PSYBEAM
<!--Linha 60-->
BUBBLEBEAM
<!--Linha 61-->
AURORA BEAM
<!--Linha 62-->
HYPER BEAM
<!--Linha 63-->
PECK
<!--Linha 64-->
DRILL PECK
<!--Linha 65-->
SUBMISSION
<!--Linha 66-->
LOW KICK
<!--Linha 67-->
COUNTER
<!--Linha 68-->
SEISMIC TOSS
<!--Linha 69-->
STRENGTH
<!--Linha 70-->
ABSORB
<!--Linha 71-->
MEGA DRAIN
<!--Linha 72-->
LEECH SEED
<!--Linha 73-->
GROWTH
<!--Linha 74-->
RAZOR LEAF
<!--Linha 75-->
SOLARBEAM
<!--Linha 76-->
POISONPOWDER
<!--Linha 77-->
STUN SPORE
<!--Linha 78-->
SLEEP POWDER
<!--Linha 79-->
PETAL DANCE
<!--Linha 80-->
STRING SHOT
<!--Linha 81-->
DRAGON RAGE
<!--Linha 82-->
FIRE SPIN
<!--Linha 83-->
THUNDERSHOCK
<!--Linha 84-->
THUNDERBOLT
<!--Linha 85-->
THUNDER WAVE
<!--Linha 86-->
THUNDER
<!--Linha 87-->
ROCK THROW
<!--Linha 88-->
EARTHQUAKE
<!--Linha 89-->
FISSURE
<!--Linha 90-->
DIG
<!--Linha 91-->
TOXIC
<!--Linha 92-->
CONFUSION
<!--Linha 93-->
PSYCHIC
<!--Linha 94-->
HYPNOSIS
<!--Linha 95-->
MEDITATE
<!--Linha 96-->
AGILITY
<!--Linha 97-->
QUICK ATTACK
<!--Linha 98-->
RAGE
<!--Linha 99-->
TELEPORT
<!--Linha 100-->
NIGHT SHADE
<!--Linha 101-->
MIMIC
<!--Linha 102-->
SCREECH
<!--Linha 103-->
DOUBLE TEAM
<!--Linha 104-->
RECOVER
<!--Linha 105-->
HARDEN
<!--Linha 106-->
MINIMIZE
<!--Linha 107-->
SMOKESCREEN
<!--Linha 108-->
CONFUSE RAY
<!--Linha 109-->
WITHDRAW
<!--Linha 110-->
DEFENSE CURL
<!--Linha 111-->
BARRIER
<!--Linha 112-->
LIGHT SCREEN
<!--Linha 113-->
HAZE
<!--Linha 114-->
REFLECT
<!--Linha 115-->
FOCUS ENERGY
<!--Linha 116-->
BIDE
<!--Linha 117-->
METRONOME
<!--Linha 118-->
MIRROR MOVE
<!--Linha 119-->
SELFDESTRUCT
<!--Linha 120-->
EGG BOMB
<!--Linha 121-->
LICK
<!--Linha 122-->
SMOG
<!--Linha 123-->
SLUDGE
<!--Linha 124-->
BONE CLUB
<!--Linha 125-->
FIRE BLAST
<!--Linha 126-->
WATERFALL
<!--Linha 127-->
CLAMP
<!--Linha 128-->
SWIFT
<!--Linha 129-->
SKULL BASH
<!--Linha 130-->
SPIKE CANNON
<!--Linha 131-->
CONSTRICT
<!--Linha 132-->
AMNESIA
<!--Linha 133-->
KINESIS
<!--Linha 134-->
SOFTBOILED
<!--Linha 135-->
HI JUMP KICK
<!--Linha 136-->
GLARE
<!--Linha 137-->
DREAM EATER
<!--Linha 138-->
POISON GAS
<!--Linha 139-->
BARRAGE
<!--Linha 140-->
LEECH LIFE
<!--Linha 141-->
LOVELY KISS
<!--Linha 142-->
SKY ATTACK
<!--Linha 143-->
TRANSFORM
<!--Linha 144-->
BUBBLE
<!--Linha 145-->
DIZZY PUNCH
<!--Linha 146-->
SPORE
<!--Linha 147-->
FLASH
<!--Linha 148-->
PSYWAVE
<!--Linha 149-->
SPLASH
<!--Linha 150-->
ACID ARMOR
<!--Linha 151-->
CRABHAMMER
<!--Linha 152-->
EXPLOSION
<!--Linha 153-->
FURY SWIPES
<!--Linha 154-->
BONEMERANG
<!--Linha 155-->
REST
<!--Linha 156-->
ROCK SLIDE
<!--Linha 157-->
HYPER FANG
<!--Linha 158-->
SHARPEN
<!--Linha 159-->
CONVERSION
<!--Linha 160-->
TRI ATTACK
<!--Linha 161-->
SUPER FANG
<!--Linha 162-->
SLASH
<!--Linha 163-->
SUBSTITUTE
<!--Linha 164-->
STRUGGLE
<!--Linha 165-->
SKETCH
<!--Linha 166-->
TRIPLE KICK
<!--Linha 167-->
THIEF
<!--Linha 168-->
SPIDER WEB
<!--Linha 169-->
MIND READER
<!--Linha 170-->
NIGHTMARE
<!--Linha 171-->
FLAME WHEEL
<!--Linha 172-->
SNORE
<!--Linha 173-->
CURSE
<!--Linha 174-->
FLAIL
<!--Linha 175-->
CONVERSION 2
<!--Linha 176-->
AEROBLAST
<!--Linha 177-->
COTTON SPORE
<!--Linha 178-->
REVERSAL
<!--Linha 179-->
SPITE
<!--Linha 180-->
POWDER SNOW
<!--Linha 181-->
PROTECT
<!--Linha 182-->
MACH PUNCH
<!--Linha 183-->
SCARY FACE
<!--Linha 184-->
FAINT ATTACK
<!--Linha 185-->
SWEET KISS
<!--Linha 186-->
BELLY DRUM
<!--Linha 187-->
SLUDGE BOMB
<!--Linha 188-->
MUD-SLAP
<!--Linha 189-->
OCTAZOOKA
<!--Linha 190-->
SPIKES
<!--Linha 191-->
ZAP CANNON
<!--Linha 192-->
FORESIGHT
<!--Linha 193-->
DESTINY BOND
<!--Linha 194-->
PERISH SONG
<!--Linha 195-->
ICY WIND
<!--Linha 196-->
DETECT
<!--Linha 197-->
BONE RUSH
<!--Linha 198-->
LOCK-ON
<!--Linha 199-->
OUTRAGE
<!--Linha 200-->
SANDSTORM
<!--Linha 201-->
GIGA DRAIN
<!--Linha 202-->
ENDURE
<!--Linha 203-->
CHARM
<!--Linha 204-->
ROLLOUT
<!--Linha 205-->
FALSE SWIPE
<!--Linha 206-->
SWAGGER
<!--Linha 207-->
MILK DRINK
<!--Linha 208-->
SPARK
<!--Linha 209-->
FURY CUTTER
<!--Linha 210-->
STEEL WING
<!--Linha 211-->
MEAN LOOK
<!--Linha 212-->
ATTRACT
<!--Linha 213-->
SLEEP TALK
<!--Linha 214-->
HEAL BELL
<!--Linha 215-->
RETURN
<!--Linha 216-->
PRESENT
<!--Linha 217-->
FRUSTRATION
<!--Linha 218-->
SAFEGUARD
<!--Linha 219-->
PAIN SPLIT
<!--Linha 220-->
SACRED FIRE
<!--Linha 221-->
MAGNITUDE
<!--Linha 222-->
DYNAMICPUNCH
<!--Linha 223-->
MEGAHORN
<!--Linha 224-->
DRAGONBREATH
<!--Linha 225-->
BATON PASS
<!--Linha 226-->
ENCORE
<!--Linha 227-->
PURSUIT
<!--Linha 228-->
RAPID SPIN
<!--Linha 229-->
SWEET SCENT
<!--Linha 230-->
IRON TAIL
<!--Linha 231-->
METAL CLAW
<!--Linha 232-->
VITAL THROW
<!--Linha 233-->
MORNING SUN
<!--Linha 234-->
SYNTHESIS
<!--Linha 235-->
MOONLIGHT
<!--Linha 236-->
HIDDEN POWER
<!--Linha 237-->
CROSS CHOP
<!--Linha 238-->
TWISTER
<!--Linha 239-->
RAIN DANCE
<!--Linha 240-->
SUNNY DAY
<!--Linha 241-->
CRUNCH
<!--Linha 242-->
MIRROR COAT
<!--Linha 243-->
PSYCH UP
<!--Linha 244-->
EXTREMESPEED
<!--Linha 245-->
ANCIENTPOWER
<!--Linha 246-->
SHADOW BALL
<!--Linha 247-->
FUTURE SIGHT
<!--Linha 248-->
ROCK SMASH
<!--Linha 249-->
WHIRLPOOL
<!--Linha 250-->
BEAT UP
Descrição dos Ataques
Código:
<!--Linha 0-->
A NORMAL-type attack. Slightly
stronger than TACKLE.
Many POKéMON know this move.
<!--Linha 1-->
A FIGHTING-type attack. Often
turns into a critical hit and
inflicts double the damage.
<!--Linha 2-->
Although each slap is weak, this
attack hits the target two to
five times in succession.
<!--Linha 3-->
Although each slap is weak, this
attack hits the target two to
five times in succession.
<!--Linha 4-->
A NORMAL-type attack move.
It is highly accurate and
relatively powerful.
<!--Linha 5-->
A move that nets money at the
end of battle. How much depends
on attack frequency and level.
<!--Linha 6-->
A special FIRE-type attack.
Has a one-in-ten chance of
inflicting a burn on the target.
<!--Linha 7-->
A special ICE-type attack.
Has a one-in-ten chance of
freezing the target.
<!--Linha 8-->
A special ELECTRIC-type
attack. Has a one-in-ten shot
at paralyzing the target.
<!--Linha 9-->
A NORMAL-type attack.
Sharp claws are used to inflict
damage on the target.
<!--Linha 10-->
A NORMAL-type attack used only
by POKéMON with pincers. The
target is gripped and injured.
<!--Linha 11-->
A single-hit knockout attack.
Learned only by POKéMON that
have large pincers.
<!--Linha 12-->
A two-turn attack with the wind
attack in the second turn.
Learned by many FLYING types.
<!--Linha 13-->
A special move that boosts
the user's ATTACK power.
Normally used up to three times.
<!--Linha 14-->
A NORMAL-type attack.
Also used for cutting small
bushes to open new paths.
<!--Linha 15-->
A FLYING-type attack. The bird
POKéMON flaps its wings to
create a powerful wind.
<!--Linha 16-->
A FLYING-type attack. The
attacking  POKéMON spreads its
wings and charges.
<!--Linha 17-->
A powerful wind that blows the
target away. The opposing
trainer must use a new POKéMON.
<!--Linha 18-->
The POKéMON flies high, then
strikes in the next turn. Used
to fly to places already visited.
<!--Linha 19-->
Traps and squeezes the target
over several turns. The target
cannot move while under attack.
<!--Linha 20-->
A NORMAL-type attack move. The
attacker uses an appendage
to slam the target hard.
<!--Linha 21-->
A GRASS-type attack.
The POKéMON uses its cruel
whips to strike the opponent.
<!--Linha 22-->
A NORMAL-type attack. Has a
one-in-three chance of making
the target flinch if it hits.
<!--Linha 23-->
A FIGHTING-type attack. As the
name implies, it is actually two
quick kicks in succession.
<!--Linha 24-->
A NORMAL-type attack. Out of
all the POKéMON kicking attacks,
this is the strongest.
<!--Linha 25-->
A forceful FIGHTING-type
attack. If it misses, however,
the attacker gets hurt.
<!--Linha 26-->
A sharp FIGHTING-type attack.
Has a one-in-three shot at
making the target flinch.
<!--Linha 27-->
An attack in which sand is used
to blind the target and reduce
its attack accuracy.
<!--Linha 28-->
A NORMAL-type attack. Has a
one-in-three chance of making
the target flinch if it hits.
<!--Linha 29-->
A NORMAL-type attack. A sharp
horn is driven hard into the
target to inflict damage.
<!--Linha 30-->
A NORMAL-type attack.
The POKéMON rapidly jabs at its
opponent several times.
<!--Linha 31-->
A single-hit knockout attack.
Learned only by POKéMON with a
horn or horns.
<!--Linha 32-->
A NORMAL-type attack. Many
POKéMON know this attack right
from the start.
<!--Linha 33-->
A NORMAL-type attack. Has a
one-in-three chance of para-
lyzing the target if it hits.
<!--Linha 34-->
Traps and squeezes the target
over two to five turns, making
the target unable to move.
<!--Linha 35-->
A charging attack. One quarter
of the damage it inflicts comes
back to hurt the attacker.
<!--Linha 36-->
An attack that lasts two to
three turns. Afterwards, the
attacker becomes confused.
<!--Linha 37-->
A charging tackle attack. One
quarter of the damage comes
back to hurt the attacker.
<!--Linha 38-->
A move that lowers the target's
DEFENSE. Useful against tough,
armored POKéMON.
<!--Linha 39-->
A POISON-type attack. Has a
one-in-three chance of leaving
the target poisoned.
<!--Linha 40-->
An attack that strikes twice.
The target may occasionally
become poisoned.
<!--Linha 41-->
An attack that fires many
needle-like projectiles from
the body. Strikes several times.
<!--Linha 42-->
A move that lowers the target's
DEFENSE. Useful against tough,
armored POKéMON.
<!--Linha 43-->
A bite made using sharp fangs.
This may cause the opponent to
flinch, and it might not attack.
<!--Linha 44-->
A move that lowers the target's
ATTACK power. Can normally be
used up to six times.
<!--Linha 45-->
A terrifying roar that drives
the target away. The opposing
trainer must use a new POKéMON.
<!--Linha 46-->
A special NORMAL-type move.
A soothing melody lulls the
target to sleep.
<!--Linha 47-->
A special NORMAL-type move.
Supersonic sound waves are
used to confuse the target.
<!--Linha 48-->
A NORMAL-type attack. It
always inflicts a set amount of
damage.
<!--Linha 49-->
A move that disables one of the
target's moves. That move can't
be used until it wears off.
<!--Linha 50-->
A POISON-type attack. Has a
one-in-ten chance of lowering
the target's DEFENSE.
<!--Linha 51-->
A FIRE-type attack. Has a one-
in-ten chance of leaving the
target with a damaging burn.
<!--Linha 52-->
A powerful FIRE-type attack.
Has a one-in-ten chance of
leaving the target with a burn.
<!--Linha 53-->
Provides full protection
against any enemy status
attack.
<!--Linha 54-->
A WATER-type attack. Stronger
than BUBBLE. Many WATER-type
POKéMON learn this move.
<!--Linha 55-->
The strongest WATER-type
attack. While it is powerful, it
may miss the target.
<!--Linha 56-->
A WATER-type attack. This move
is strong and highly accurate.
<!--Linha 57-->
An ICE-type attack.
Has a one-in-ten chance of
freezing the target solid.
<!--Linha 58-->
The strongest ICE-type
attack. Has a one-in-ten
chance of freezing the target.
<!--Linha 59-->
A PSYCHIC-type attack. Has a
one-in-ten chance of making
the target confused.
<!--Linha 60-->
A WATER-type attack. Has a
one-in-ten chance of reducing
the target's SPEED.
<!--Linha 61-->
An ICE-type attack. Has a
one-in-ten chance of reducing
the target's ATTACK power.
<!--Linha 62-->
An extremely powerful attack.
The attacker becomes so tired,
it has to rest the next turn.
<!--Linha 63-->
A standard FLYING-type
attack. It is favored by
POKéMON with beaks or horns.
<!--Linha 64-->
A standard FLYING-type
attack. It is strong and highly
likely to hit the target.
<!--Linha 65-->
Strongest FIGHTING attack.
One quarter of the damage also
hurts the attacker.
<!--Linha 66-->
A FIGHTING-type attack. Has a
one-in-three chance of making
the target flinch if it hits.
<!--Linha 67-->
A retaliation move that pays
back double the damage of a
physical attack. Very accurate.
<!--Linha 68-->
A FIGHTING-type attack.
Throws the target with enough
force to flip the world.
<!--Linha 69-->
A very powerful NORMAL-type
attack. Also used for moving
obstacles like boulders.
<!--Linha 70-->
A GRASS-type attack. It adds
half the HP it drained from the
target to the attacker's HP.
<!--Linha 71-->
A GRASS-type attack. It adds
half the HP it drained from the
target to the attacker's HP.
<!--Linha 72-->
Plants a seed on the target
POKéMON. It slowly drains the
target's HP for the attacker.
<!--Linha 73-->
A NORMAL-type move that raises
SPCL.ATK. Normally used up to
six times.
<!--Linha 74-->
A GRASS-type attack that
uses sharp-edged leaves.
Likely to get a critical hit.
<!--Linha 75-->
Strongest GRASS-type attack.
Energy is absorbed in the first
turn, then fired on the next.
<!--Linha 76-->
A move that poisons the target.
If poisoned, the victim loses HP
steadily.
<!--Linha 77-->
Special move that causes para-
lysis. The victim has a one-in-
four chance of immobility.
<!--Linha 78-->
Induces sleep. A POKéMON will
stay asleep for several turns
if an item isn't used to wake it.
<!--Linha 79-->
A dance-like attack that lasts
two to three turns. The
attacker becomes confused.
<!--Linha 80-->
Strings are sprayed out and
wrapped around the target to
reduce its SPEED.
<!--Linha 81-->
A DRAGON-type attack. It
always inflicts a set amount of
damage.
<!--Linha 82-->
A FIRE-type attack that lasts
two to five turns. The flames
make the target unable to move.
<!--Linha 83-->
An ELECTRIC-type attack. Has a
one-in-ten chance of
paralyzing the target.
<!--Linha 84-->
An ELECTRIC-type attack. Has a
one-in-ten chance of
paralyzing the target.
<!--Linha 85-->
A special move that causes
paralysis. The victim has a one-
in-four chance of immobility.
<!--Linha 86-->
Strongest of all ELECTRIC-type
attacks. Has a one-in-ten
shot at paralyzing the target.
<!--Linha 87-->
A ROCK-type attack. As the
name implies, a huge boulder is
dropped on the target.
<!--Linha 88-->
An attack that inflicts damage
by shaking the ground. Useless
against the FLYING type.
<!--Linha 89-->
Causes a single-hit knockout if
it hits. Useless against FLYING-
type POKéMON.
<!--Linha 90-->
The attacker digs underground
in the first turn, then pops up
in the next turn to attack.
<!--Linha 91-->
A move that badly poisons the
target. The amount of poison
damage increases every turn.
<!--Linha 92-->
A PSYCHIC-type attack. Has a
one-in-ten chance of leaving
the target confused.
<!--Linha 93-->
A PSYCHIC-type attack. Has a
one-in-ten chance of lowering
the target's SPCL.DEF rating.
<!--Linha 94-->
A special PSYCHIC-type move.
The target is hypnotized into a
deep sleep.
<!--Linha 95-->
A special move that boosts the
user's ATTACK power. Can
normally be used up to six times.
<!--Linha 96-->
A special move that greatly
boosts the user's SPEED.
Normally used up to three times.
<!--Linha 97-->
Always strikes first. If both
POKéMON use this, the one with
higher SPEED attacks first.
<!--Linha 98-->
A non-stop attack move. The
user's ATTACK power increases
every time it sustains damage.
<!--Linha 99-->
A special move for instantly
escaping from wild POKéMON.
Useful in the wild only.
<!--Linha 100-->
A GHOST-type attack. Highly
accurate, it always inflicts
damage.
<!--Linha 101-->
A move for learning one of the
opponent's moves, for use
during that battle only.
<!--Linha 102-->
A move that makes a horrible
noise. It sharply reduces the
target's DEFENSE.
<!--Linha 103-->
Creates illusionary copies of
the user. They disorient the
enemy, reducing its accuracy.
<!--Linha 104-->
Half of the user's maximum HP is
restored. Few POKéMON learn
this move on their own.
<!--Linha 105-->
Raises the user's DEFENSE.
Useful when battling physically
strong POKéMON.
<!--Linha 106-->
Reduces the user's size and
makes it harder to hit. Can
normally be used up to six times.
<!--Linha 107-->
Creates an obscuring cloud of
smoke that reduces the enemy's
accuracy.
<!--Linha 108-->
A sinister flash of light makes
the target confused.
A special GHOST-type move.
<!--Linha 109-->
Used mainly by POKéMON with
shells. By withdrawing into the
shell, DEFENSE is increased.
<!--Linha 110-->
Raises the user's DEFENSE. Can
normally be used up to six times
in a row.
<!--Linha 111-->
Instantly forms a barrier
between the user and the
opponent. DEFENSE is increased.
<!--Linha 112-->
Reduces damage from special
attacks by about half.
A special PSYCHIC-type move.
<!--Linha 113-->
Eliminates all changes affecting
stats, such as SPEED, of both
POKéMON in battle.
<!--Linha 114-->
Reduces damage from physical
attacks by about half.
A special PSYCHIC-type move.
<!--Linha 115-->
Raises the likelihood of nailing
the opponent's weak spot for a
critical hit.
<!--Linha 116-->
The user waits for several
turns. At the end, it returns
double the damage it received.
<!--Linha 117-->
The user waggles its finger,
triggering a move. There is no
telling what will happen.
<!--Linha 118-->
A move that strikes back with
the opponent's last move. It
comes after the enemy's move.
<!--Linha 119-->
The user explodes, damaging the
enemy, then faints. Useless
against the GHOST type.
<!--Linha 120-->
A NORMAL-type attack. An
egg is launched at the target.
It may miss, however.
<!--Linha 121-->
A GHOST-type attack. Has a
one-in-three chance of leaving
the target with paralysis.
<!--Linha 122-->
Smog is spewed as a cloud.
Has a fifty-fifty chance of
poisoning the target.
<!--Linha 123-->
A POISON-type attack. Has a
one-in-three chance of
poisoning the target.
<!--Linha 124-->
A physical attack using a bone
as a club. If it connects, it may
cause the target to flinch.
<!--Linha 125-->
Strongest FIRE-type attack.
Has a one-in-ten chance of
inflicting a burn on the target.
<!--Linha 126-->
A WATER-type attack. Hits with
a blow packing the power of fish
traveling up waterfalls.
<!--Linha 127-->
Grips the target in the
attacker's shell for two to five
turns.
<!--Linha 128-->
A NORMAL-type attack. It is
highly accurate, so it can be
counted on to inflict damage.
<!--Linha 129-->
In the first turn, the attacker
tucks its head. The next turn,
it head-butts at full steam.
<!--Linha 130-->
A physical attack consisting of
two to five consecutive hits.
Highly accurate.
<!--Linha 131-->
A NORMAL-type attack. Has a
one-in-ten chance of reducing
the target's SPEED.
<!--Linha 132-->
A move that increases the
user's SPCL.DEF stat. It is
normally used up to three times.
<!--Linha 133-->
A special move of bending
spoons to confound the enemy.
Makes the user harder to hit.
<!--Linha 134-->
Half of the user's maximum HP is
restored.
May also be used in the field.
<!--Linha 135-->
Stronger than JUMP KICK. If it
misses, the attacker takes 1/8
the damage it would've caused.
<!--Linha 136-->
Transfixes the enemy with
terrifying sharp eyes,
frightening it into paralysis.
<!--Linha 137-->
Works only on sleeping POKéMON.
Steals the target's HP and adds
50%% of it to the user's HP.
<!--Linha 138-->
A poisonous cloud of gas is
forcefully expelled to poison
the target.
<!--Linha 139-->
Several spheres are thrown
consecutively at the target to
inflict damage.
<!--Linha 140-->
An HP-draining attack. It adds
half the HP it drained from  the
target to the attacker's HP.
<!--Linha 141-->
A special move that puts the
target to sleep with a big kiss.
(Actually, the victim faints.)
<!--Linha 142-->
Strongest FLYING-type attack.
Stores energy in the first
turn, then fires in the next.
<!--Linha 143-->
Transforms user into a copy of
the target, including the type.
All moves have only five PP each.
<!--Linha 144-->
A WATER-type attack. Has a
one-in-ten chance of reducing
the target's SPEED.
<!--Linha 145-->
A NORMAL-type attack. Has a
one-in-five chance of leaving
the target confused.
<!--Linha 146-->
Special spores are scattered
from mushrooms. If the foe
inhales them, it will fall asleep.
<!--Linha 147-->
Blinds the target with a bright
flash of light, reducing the
opponent's accuracy.
<!--Linha 148-->
A PSYCHIC-type attack of
varying intensity. It occasion-
ally inflicts heavy damage.
<!--Linha 149-->
A move that involves only
flopping and SPLASHing around.
It has no effect.
<!--Linha 150-->
Melts the user's body for
protection. A move that sharply
raises DEFENSE.
<!--Linha 151-->
A move that is used only by
POKéMON with pincers. Likely to
get a critical hit.
<!--Linha 152-->
The most powerful attack of all.
However, the attacker faints
after using this move.
<!--Linha 153-->
The target is scratched by
sharp claws two to five times in
quick succession.
<!--Linha 154-->
A boomerang made of bone is
thrown to inflict damage twice,
on the way out and on return.
<!--Linha 155-->
The user takes a nap to fully
restore its HP and recover
from any status abnormalities.
<!--Linha 156-->
A ROCK-type attack that hits
the target with an avalanche of
rocks and boulders.
<!--Linha 157-->
A NORMAL-type attack.
Has a one-in-ten chance of
making the target flinch.
<!--Linha 158-->
Raises the user's ATTACK power.
The edges of the POKéMON are
made harder for more impact.
<!--Linha 159-->
A special move that switches
the user's elemental type into
one of the user's attack types.
<!--Linha 160-->
A NORMAL-type attack. A
triangular field of energy is
created and launched.
<!--Linha 161-->
If it hits, this attack cuts the
target's HP in half. Learned by
POKéMON with developed fangs.
<!--Linha 162-->
A NORMAL-type attack. It has a
high probability of a critical hit
for inflicting double damage.
<!--Linha 163-->
Uses 1/4 of the user's maximum
HP to create a substitute that
takes the opponent's attacks.
<!--Linha 164-->
Used only if the user is totally
out of PP. The user is hit with
1/4 the damage it inflicts.
<!--Linha 165-->
A move that allows the user to
copy a move used by an
opponent and learn that move.
<!--Linha 166-->
A three-kick attack that
inflicts increasing damage. When
one kick misses, the move ends.
<!--Linha 167-->
A DARK-type attack. The
attacking POKéMON may steal an
item held by the target.
<!--Linha 168-->
Sticky strings that prevent
the target from escaping until
the attacking POKéMON is gone.
<!--Linha 169-->
It predicts the opponent's
movement. The user's next
attack will never miss.
<!--Linha 170-->
A move that makes a sleeping
target have bad dreams. The
victim will steadily lose HP.
<!--Linha 171-->
A FIRE-type attack. Has a
one-in-ten chance of inflicting
a burn on the target.
<!--Linha 172-->
Has a one-in-three chance of
making the target flinch. Can be
used only by a sleeping POKéMON.
<!--Linha 173-->
Raises ATTACK and DEFENSE at
the expense of SPEED. It works
differently for the GHOST type.
<!--Linha 174-->
An attack that increases in
power if the user's HP is low. It
could turn the tide in battle.
<!--Linha 175-->
A move that changes the user's
type into one that is resistant
to the opponent's last move.
<!--Linha 176-->
A powerful FLYING-type attack.
It often becomes a critical hit.
<!--Linha 177-->
Spores that cling to the
target, sharply reducing the
opponent's SPEED.
<!--Linha 178-->
An attack that increases in
power if the user's HP is low. It
could turn the tide in battle.
<!--Linha 179-->
A vengeful move that slightly
reduces the PP of the
opponent's last move.
<!--Linha 180-->
An ICE-type attack. Has a
one-in-ten chance of freezing
the target.
<!--Linha 181-->
Completely foils an opponent's
attack. If used consecutively,
its success rate decreases.
<!--Linha 182-->
An incredibly fast punch that
always lands first.
<!--Linha 183-->
A horrific look that scares the
victim, sharply reducing the
target's SPEED.
<!--Linha 184-->
A DARK-type attack. The move
catches the opponent off
guard, so it never misses.
<!--Linha 185-->
A sweet little kiss that causes
the target to become giddy and
confused.
<!--Linha 186-->
A move that allows the user to
consume half of its own HP in
order to maximize its ATTACK.
<!--Linha 187-->
A POISON-type attack. Has a
one-in-three chance of leaving
the target poisoned.
<!--Linha 188-->
An attack that fires dirt,
inflicting damage and reducing
the target's accuracy.
<!--Linha 189-->
An attack that shoots ink. Has
a fifty-fifty chance of reduc-
ing the target's accuracy.
<!--Linha 190-->
An attack that scatters
SPIKES and injures opponent
POKéMON when they switch.
<!--Linha 191-->
An ELECTRIC-type attack.
Inaccurate but is guaranteed
to cause paralysis if it hits.
<!--Linha 192-->
Neutralizes the foe's evasive-
ness. Also makes the GHOST type
vulnerable to physical attacks.
<!--Linha 193-->
A move that causes the
opponent to faint if the user
faints after using this move.
<!--Linha 194-->
A malevolent melody that causes
both the user and the opponent
to faint in three turns.
<!--Linha 195-->
An ICE-type attack. It is
guaranteed to reduce the
target's SPEED if it hits.
<!--Linha 196-->
Allows user to completely evade
attack. If used consecutively,
its success rate decreases.
<!--Linha 197-->
A GROUND-type attack. The
attacker uses a bone to club
the foe two to five times.
<!--Linha 198-->
An attack that locks on to the
target to ensure that the next
attack will hit without fail.
<!--Linha 199-->
An attack that lasts two to
three turns. Afterwards, the
attacker will become confused.
<!--Linha 200-->
An attack that creates a sand-
storm. The effect causes
damage to both combatants.
<!--Linha 201-->
Half of the HP drained from the
target is added to the
attacker's HP.
<!--Linha 202-->
Always leaves the user with
at least one HP. Success rate
decreases if used repeatedly.
<!--Linha 203-->
A move that charms the target
into complacency, sharply
reducing its ATTACK power.
<!--Linha 204-->
Attacks for five turns, growing
more powerful each time. Power
returns to normal if it misses.
<!--Linha 205-->
A move that adjusts ATTACK so
that the foe has one HP left.
Can't cause the foe to faint.
<!--Linha 206-->
A move that infuriates and
confuses the opponent, but it
increases the target's ATTACK.
<!--Linha 207-->
A move that restores HP by half
of the user's max HP. This move
may also be used in the field.
<!--Linha 208-->
An ELECTRIC-type attack. Has a
one-in-three chance of para-
lyzing the target.
<!--Linha 209-->
A BUG-type attack that grows
more powerful with every hit.
Returns to normal if it misses.
<!--Linha 210-->
Strikes the target with stiff
wings. Has a one-in-ten chance
of raising the user's DEFENSE.
<!--Linha 211-->
A probing stare that prevents
the target from escaping until
the attacking POKéMON is gone.
<!--Linha 212-->
Infatuates targets, making it
hard for them to attack foes
of the opposite gender.
<!--Linha 213-->
Randomly chooses one of the
user's moves. Can be used only
by a sleeping POKéMON.
<!--Linha 214-->
The soothing ringing of a bell
that eliminates all status
problems for the entire party.
<!--Linha 215-->
A NORMAL-type attack. The
tamer the user, the more
powerful the move.
<!--Linha 216-->
A move that inflicts major
damage but may restore the
target's HP.
<!--Linha 217-->
A NORMAL-type attack. The more
the user dislikes its trainer,
the more powerful the move.
<!--Linha 218-->
A mystic power that protects
the user from status problems
for five turns.
<!--Linha 219-->
A move that adds the HPs of the
user and the target, then
divides the total between them.
<!--Linha 220-->
A FIRE-type attack. Has a one-
in-two chance of leaving the
target with a burn.
<!--Linha 221-->
A GROUND-type attack. The
power of the attack will vary
each time it is used.
<!--Linha 222-->
A FIGHTING-type attack. In-
accurate but guaranteed to
confuse the opponent if it hits.
<!--Linha 223-->
A BUG-type attack that uses a
stiff horn or horns. It is
rarely learned.
<!--Linha 224-->
A DRAGON-type attack. Has a
one-in-three chance of
paralyzing the target.
<!--Linha 225-->
A move that transfers the
user's status changes to the
next POKéMON when switching.
<!--Linha 226-->
Forces the target to continue
to use the move it used last for
the next two to six turns.
<!--Linha 227-->
A DARK-type attack. It inflicts
major damage if the target
switches out in the same turn.
<!--Linha 228-->
A NORMAL-type attack. By spin-
ning quickly, the user can
escape from restraining moves.
<!--Linha 229-->
A pleasant aroma that
distracts the target, making
the opponent easier to hit.
<!--Linha 230-->
Strikes the target with a stiff
tail. Has a one-in-three shot at
lowering the target's DEFENSE.
<!--Linha 231-->
Strikes the target with sharp
claws. Has a one-in-ten shot at
raising the user's ATTACK.
<!--Linha 232-->
A FIGHTING-type attack. Always
comes after the target's
attack but never misses.
<!--Linha 233-->
Allows HP to be restored by the
morning sunlight. In battle, half
the user's max HP is restored.
<!--Linha 234-->
Allows HP to be restored by the
sunlight. In battle, half the
user's max HP is restored.
<!--Linha 235-->
Allows HP to be restored by the
moonlight. In battle, half the
user's max HP is restored.
<!--Linha 236-->
A peculiar move that changes
type and power depending on
the POKéMON using it.
<!--Linha 237-->
A FIGHTING-type attack. It is
powerful and often lands a
critical hit.
<!--Linha 238-->
A DRAGON-type attack. Has a
one-in-five chance of causing
the target to flinch.
<!--Linha 239-->
Summons rain for five turns.
While it is raining, the power of
WATER-type moves increases.
 
<!--Linha 240-->
Makes the weather sunny for
five turns. When sunny, FIRE-
type moves are more powerful.
<!--Linha 241-->
A DARK-type attack. Has a
one-in-five chance of reducing
the target's SPCL.DEF.
<!--Linha 242-->
The foe will receive double the
damage the user sustained from
a special attack. High accuracy.
<!--Linha 243-->
Self-hypnosis move that copies
the foe's stats changes,
then applies them to the user.
<!--Linha 244-->
An attack that always strikes
first. It can be learned by only
a few POKéMON.
<!--Linha 245-->
A ROCK-type attack. This
prehistoric move may boost all
of the user's stats.
<!--Linha 246-->
A GHOST-type attack. Has a
one-in-five chance of reducing
the target's SPCL.DEF.
<!--Linha 247-->
A special PSYCHIC-type attack.
It strikes the target two
turns after it is used.
<!--Linha 248-->
A FIGHTING-type attack. In the
field, it can be used to shatter
rocks to open new paths.
<!--Linha 249-->
Lasts two to five turns. Foe
becomes trapped in a vortex,
making it impossible to switch.
<!--Linha 250-->
A DARK-type attack. The user's
fellow party POKéMON appear to
pummel the target.

Ainda tenho que fazer algumas adaptações.
Kamppello
Kamppello
Administrador NBR
Administrador NBR

Masculino Mensagens : 927
Membro desde : 28/09/2010
Idade : 36
Cidade : Recanto das Emas
Brasil


http://nbr-traducoes.blogspot.com/

Ir para o topo Ir para baixo

Tool PKM Stadium Funcionando Empty Re: Tool PKM Stadium Funcionando

Mensagem  L-Slayer Sáb 26 Jan 2013, 09:32

Legal, vi alguns videos dele e esta muito bem explicadinho, depois pegue o código devagar e vá estudando as funções, por que se você entender poderá fazer em qualquer linguagem! Meu primeiro dump/inserter que fiz foi estudando um código do Ondinha e digo que aprendi muito. Apesar de ter algum tempo em que mexi com php se precisar de ajuda é só chamar! Exclamação
L-Slayer
L-Slayer
Administrador NBR
Administrador NBR

Masculino Mensagens : 156
Membro desde : 28/09/2010
Idade : 33
Cidade : Mateus Leme
Brasil


Ir para o topo Ir para baixo

Tool PKM Stadium Funcionando Empty Re: Tool PKM Stadium Funcionando

Mensagem  Kamppello Sáb 26 Jan 2013, 10:13

Beleza. O __Ray__ fez uma tool para mim que requeria a criação de uma tabela, vou analisar esse código, porque será muito útil.

No PKM, eu pretendia remover o endstring "00hex" do final das frases e inseri-lo depois, porque só dá para visualizá-lo no notepad++, mas isso só vai dar trabalho e no final o resultado será o mesmo.

Eu pulei uma etapa, antes de tudo eu tinha que fazer algo para extrair os blocos para depois extrair os textos deles, mas como não sabia de nada, pulei essa parte. Vou tentar fazer isso agora.

Qualquer coisa te aviso.
Kamppello
Kamppello
Administrador NBR
Administrador NBR

Masculino Mensagens : 927
Membro desde : 28/09/2010
Idade : 36
Cidade : Recanto das Emas
Brasil


http://nbr-traducoes.blogspot.com/

Ir para o topo Ir para baixo

Tool PKM Stadium Funcionando Empty Re: Tool PKM Stadium Funcionando

Mensagem  Kamppello Sex 01 Fev 2013, 21:20

Estou tentando colocar a interface gráfica da imagem abaixo na tool, mas com tão pouco conhecimento está extremamente difícil fazer essa "bagaça" funcionar.

Tool PKM Stadium Funcionando Toolv
Kamppello
Kamppello
Administrador NBR
Administrador NBR

Masculino Mensagens : 927
Membro desde : 28/09/2010
Idade : 36
Cidade : Recanto das Emas
Brasil


http://nbr-traducoes.blogspot.com/

Ir para o topo Ir para baixo

Tool PKM Stadium Funcionando Empty Re: Tool PKM Stadium Funcionando

Mensagem  L-Slayer Sex 01 Fev 2013, 23:21

Kamppello você esta usando é a bliblioteca GTK para "desenhar"?
L-Slayer
L-Slayer
Administrador NBR
Administrador NBR

Masculino Mensagens : 156
Membro desde : 28/09/2010
Idade : 33
Cidade : Mateus Leme
Brasil


Ir para o topo Ir para baixo

Tool PKM Stadium Funcionando Empty Re: Tool PKM Stadium Funcionando

Mensagem  Kamppello Sáb 02 Fev 2013, 12:00

Uhum, php-gtk2, mas esse desenho ai eu fiz com um utilitário chamado glade, ele gera um arquivo parecido com 'xml', que facilita bastante a construção gráfica, memso assim ... Razz
Kamppello
Kamppello
Administrador NBR
Administrador NBR

Masculino Mensagens : 927
Membro desde : 28/09/2010
Idade : 36
Cidade : Recanto das Emas
Brasil


http://nbr-traducoes.blogspot.com/

Ir para o topo Ir para baixo

Tool PKM Stadium Funcionando Empty Re: Tool PKM Stadium Funcionando

Mensagem  L-Slayer Sáb 02 Fev 2013, 16:50

Tô ligado, uso ele para fazer GUI de programas Python, o que na verdade você não esta entendendo?
L-Slayer
L-Slayer
Administrador NBR
Administrador NBR

Masculino Mensagens : 156
Membro desde : 28/09/2010
Idade : 33
Cidade : Mateus Leme
Brasil


Ir para o topo Ir para baixo

Tool PKM Stadium Funcionando Empty Re: Tool PKM Stadium Funcionando

Mensagem  Kamppello Sáb 02 Fev 2013, 18:31

Não tava conseguindo adicionar a imagem, nem utilizar o arquivo gerado pelo glade. Mas consegui um progresso bacana essa tarde, consegui até adicionar um splash, agora tó precisando de um meio de fazer a tool executar o código do dumper e do inserter. Apesar de já está aparecendo a mensagem que o texto foi extraído e inserido, ela não está fazendo nada. Fora isso é só alterar o ícone e digitar as instruções. Ah sim, tenho que tirar esse cinza do plano de fundo do splash.

splash - [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
tool - [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
Kamppello
Kamppello
Administrador NBR
Administrador NBR

Masculino Mensagens : 927
Membro desde : 28/09/2010
Idade : 36
Cidade : Recanto das Emas
Brasil


http://nbr-traducoes.blogspot.com/

Ir para o topo Ir para baixo

Tool PKM Stadium Funcionando Empty Re: Tool PKM Stadium Funcionando

Mensagem  L-Slayer Sáb 02 Fev 2013, 19:04

Vamos lá, meu php não está nem um pouco calibrado, mas vou tentar te ajudar com base com que eu faço em python!
Você desenhou a interface no glade, o que você deve fazer agora é dar função aos botões!
Primeiro deixe de preferencia o aquivo.glade que foi criado na mesma pasta dos códigos!
Pelo o que eu entendi do seu código, o main é o código PK não é isso? Ele tá importando o dump e o inserter, mas o principal é esse não é?
Bem se for como eu pensei( li o código bem superficialmente, foi mals rs), a primeira coisa q voce deve fazer é importar o glade para o código.Como?

$glade = new GladeXML(....Caminho.../helloglade.glade');

O que esta entre os parenteses é o argumento no caso você deve informar o caminho onde se encontra o seu arquivo glade, entendeu?
Blz, agora vamos para a proxima linha!

$button = $glade->get_widget('NOME DO BOTAO');
$button->connect_simple('clicked', 'onClickButton');

Aqui rola o seguinte, você esta usando o metodo get_widget de $glade, o que ele faz? Ele captura o widget selecionado, no caso como parametro vc deve indicar o nome do botao, vc pode olhar o nome abrindo o glade, clika nele e olha as propriedades. Lembrado que o nome tem que ser entre aspas mesmo. Essa widget vai para a variavel $button. Na linha de baixo você estara conectando esse botão a uma função tente deixar dessa forma.
$button->connect_simple('clicked', 'dumper');

Na verdade eu não sei se vai dar certo, mais é mais ou menos uma coisa assim. Se não der eu tento fazer pra vc aqui! Tem muito tempo que não mexo com isso então eu não lembro direito! Razz
L-Slayer
L-Slayer
Administrador NBR
Administrador NBR

Masculino Mensagens : 156
Membro desde : 28/09/2010
Idade : 33
Cidade : Mateus Leme
Brasil


Ir para o topo Ir para baixo

Tool PKM Stadium Funcionando Empty Re: Tool PKM Stadium Funcionando

Mensagem  Kamppello Dom 03 Fev 2013, 10:13

Deixei o glade de lado, tava muito confuso e no final o resultado tava sendo o mesmo.
Fiz outro código no notepad. Testei o último código, não acusou erro, mas também não executou o dumper.
Código:
  $btnInstrucoes->connect_simple('clicked','fExibeTexto',$Mensagem);
  $btnInserir->connect_simple('clicked','fExibeTexto',$Mensagem3);
  $btnSobre->connect_simple('clicked','fExibeTexto',$sobre);
  $btnExtrair->connect_simple('clicked', 'onClickButton');
  $btnExtrair->connect_simple('clicked', 'tool/dumper.php');

Código:
  function fExibeTexto($campotexto)
    {
    $texto = $campotexto->get_text();
    $dialog = new GtkMessageDialog(null, Gtk::DIALOG_MODAL,
    Gtk::MESSAGE_WARNING, Gtk::BUTTONS_OK, $texto );
    $dialog->run();
    $dialog->destroy();
    }

Pensei em fazer uma função para rodar os arquivos php, mas não sei por onde começar, nem se vai funcionar. Razz
Kamppello
Kamppello
Administrador NBR
Administrador NBR

Masculino Mensagens : 927
Membro desde : 28/09/2010
Idade : 36
Cidade : Recanto das Emas
Brasil


http://nbr-traducoes.blogspot.com/

Ir para o topo Ir para baixo

Tool PKM Stadium Funcionando Empty Re: Tool PKM Stadium Funcionando

Mensagem  Conteúdo patrocinado


Conteúdo patrocinado


Ir para o topo Ir para baixo

Ir para o topo

- Tópicos semelhantes

 
Permissões neste sub-fórum
Não podes responder a tópicos