Welcome, Guest. Please login or register.
Did you miss your activation email?

Username: Password:


Pages: [1]   Go Down

Author Topic: how to get the old PDK to work  (Read 6477 times)

DragonGirl

  • Outstanding in the herd
  • **** Posts: 63
how to get the old PDK to work
« on: May 06, 2012, 01:47:35 AM »

I've signed up on the innvolabs pleoworld, but the pdk page appears empty.
So how do I get it?

I pulled down a copy of a PDK kit off http://ipr10.wikidot.com/pleo
and installed pawn
but I can't process the example test_sensor script from the tutorial, it gives
...
$  ../../bin/ugobe_project_tool touch_test.upf rebuild
...some reasonably proper output...
*** Processing ***
  Converting ../../media/sounds/growl.wav to temp/sounds/growl.usf adpcm:1 pitch:1 freq:11025
  Building script 'sensors.p'
  execute 'sensors.p'
  @ pawncc sensors.p -V2048 -O2 -S64 -v2 -C-  -iinclude -i..\..\include TARGET=100 -otemp/scripts/sensors.amx
  ERROR: building script 'sensors.p'


when I try to build the script with the above command along I get it to complain as if a option is wrong:

$  pawncc sensors.p -V2048 -O2 -S64 -v2 -C-  -iinclude -i..\..\include TARGET=100 -otemp/scripts/sensors.amx
Pawn compiler 4.0.4548                  Copyright (c) 1997-2011, ITB CompuPhase

Usage:   pawncc <filename> [filename...] [options]
...

I'm on windows, so I fix the file path \ to / for my cygwin command and remove the "-C-" option (what is it for?) and get:

$  pawncc sensors.p -V2048 -O2 -S64 -v2   -iinclude -i../../include TARGET=100 -otemp/scripts/sensors.amx
Pawn compiler 4.0.4548                  Copyright (c) 1997-2011, ITB CompuPhase

sensors.p(7) : warning 207: unknown #pragma
sensors.p(7) : error 038: extra characters on line
../../include\common/message_type.inc(1) : error 010: invalid function or declaration
../../include\common/message_type.inc(36) : error 010: invalid function or declaration
../../include\Log.inc(24) : error 021: symbol already defined: "getchar"
../../include\Log.inc(45) : error 021: symbol already defined: "print"
../../include\Log.inc(45) : error 025: function heading differs from prototype
../../include\Log.inc(56) : error 021: symbol already defined: "printf"
../../include\Log.inc(56) : error 025: function heading differs from prototype
../../include\Script.inc(19) : error 017: undefined symbol "TARGET_PLEO"
../../include\Script.inc(29) : error 010: invalid function or declaration
../../include\Script.inc(44) : error 017: undefined symbol "vm_aux"
../../include\Script.inc(46) : error 017: undefined symbol "vm_aux"
../../include\Script.inc(55) : error 017: undefined symbol "vm_aux"
../../include\Script.inc(57) : error 017: undefined symbol "vm_aux"
../../include\Script.inc(105) : error 017: undefined symbol "vm_aux"
../../include\Sensor.inc(20) : error 017: undefined symbol "TARGET_PLEO"
../../include\Sound.inc(26) : error 010: invalid function or declaration
../../include\Sound.inc(29) : error 010: invalid function or declaration
../../include\Sound.inc(52) : error 017: undefined symbol "Sound_Any"
../../include\Sound.inc(60) : error 017: undefined symbol "Sound_Any"
include\sounds.inc(8) : error 010: invalid function or declaration
Assertion Failed: match_length>=repl_length, function stgopt, file sc7.c, line 771.
ABNORMAL TERMINATION


I can't find any reference to #pragma pack in the manual as stated in the sensors.p.
The include common/message_type.in is a enum  that I can't figure out what's wrong with it.

OK what gives?  Can I buy a clue.
Is there a different version of pawn I should be using?



Logged


InmemoryofRomeo

  • Global Moderator
  • Pleo Grand Master RB
  • * Posts: 6903
  • au Female
  • Pleo(s): Lilo, Stitch, Pleakley, Jumba, Nani, Yuki, Angus, Pluto
  • : 2011 winner2009 winnerTomato Harvest Festivals
  • SAVE THE EARTH It's the only planet with chocolate
    • Professor
    • Wile_E_Coyote
    • Marcie
Re: how to get the old PDK to work
« Reply #1 on: May 06, 2012, 05:49:54 AM »

You do need a specific version, its stated in the PDK somewhere.
Logged
Eagerly awaiting Vector and Blue!

DragonGirl

  • Outstanding in the herd
  • **** Posts: 63
Re: how to get the old PDK to work
« Reply #2 on: May 06, 2012, 11:41:27 AM »

Thank you - found it.

In the PDK, the file "PDK Read Me First.pdf" says

"NOTE: Pleo 1.0.x firmware requires Pawn compiler version 3.2 and Pleo 1.1 firmware requires Pawn compiler version 3.3."




Logged

DragonGirl

  • Outstanding in the herd
  • **** Posts: 63
Re: how to get the old PDK to work
« Reply #3 on: May 07, 2012, 12:38:09 AM »

I can't find the windows self extracting exe of any of the older pawn versions.  *sigh*

Trying to get on the pawn forum to see if someone can show me were to get them.
Logged

PleoPet

  • Pleontologist
  • * Posts: 162
  • Female
Re: how to get the old PDK to work
« Reply #4 on: May 10, 2012, 03:20:00 PM »

Several comments:

> So how do I get it?

In general if you can't find something it is a good idea to look or ask here.
You can find an official copy of the "old" PDK (pre-RB) here under the Downloads section, under '"Classic" Pleo Tools (Not PleoRB)'

BTW: If you are interested in future RB development, you can install the RB SDK/PDK and use the old "sensors.inc" file

> I pulled down a copy of a PDK kit off http://ipr10.wikidot.com/pleo
In general it is dangerous to trust mirrored copies. This one has some deletions and additions, but should still work. However it is not as it is advertised.

> and installed pawn
That is your problem.
You do not need to install PAWN. The correct version of pawn tools come with the PDK.
For example in the "bin" folder of the install there is both 'pawncc32.exe' and 'pawncc33.exe' for running under Windows.

Unless you want to run PAWN for other purposes, I suggest uninstalling the separate PAWN install (version 4.0.xxx) and then try the build script again. If it can't find 'pawncc' then be sure the PDK install 'bin' path is setup correctly.

Good luck.
Logged
Pages: [1]   Go Up
 

SimplePortal 2.3.5 © 2008-2012, SimplePortal