Author Topic: GearHead: ArenaR First Release. Merry Christmas!  (Read 2588 times)

Offline Joseph Hewitt

  • Administrator
  • Hero Member
  • *****
  • Posts: 2552
    • View Profile
    • http://www.gearheadrpg.com
GearHead: ArenaR First Release. Merry Christmas!
« on: December 24, 2011, 09:39:55 AM »
GearHead: Arena-R is a remake of GearHead-1 using the GearHead2 engine with Lua scripting. The idea is to use this as a learning tool- both for myself, and for those who want to create their own content. I invite you to join me in filling up this big empty world with cities, characters, and events.

https://sourceforge.net/projects/gearhead2/files/ArenaR/

What's done so far:
- Hogye Village
- The Mecha Sporch arena.
- Hogye Mine, complete with Wolfram at the bottom.
- Services: Quentin's shop, Hogye Clinic, and a mechanic.
- Calmegie Research Station
- The Mystery Machine, a Lua thingamabob for you to play around with.
- Two content files written up as tutorials.
- A new world map system, which I hope you'll like.

What isn't done:
- The rest of the world.
- Plots and stories. I wanted to start with the static content- quests and rancon- and expand into this later.
- Changes to the rule system. This will probably be done next.
- Graphics for water. Oops.

Try it out, then try adding your own stuff. Let me know what works. Or what doesn't... that could be more important.

Offline Daemonward

  • Full Member
  • ***
  • Posts: 215
    • View Profile
Re: GearHead: ArenaR First Release. Merry Christmas!
« Reply #1 on: December 24, 2011, 08:48:10 PM »
I tried to compile ArenaR from source, but I get a fatal error during linking. At first, I thought that it was because I didn't have lua installed, but after installing the lua5.1 package, I still get the same error. Are there any specific packages (in addition to those listed in the GH compilation guide) that need to be installed or any special setup instructions that need to be followed for this release?

I am currently running Ubuntu 11.10 Oneiric Ocelot 64-bit.

Here is my output.

Code: [Select]
~/Downloads/GH2.1$ fpc gearhead
Free Pascal Compiler version 2.4.4-2ubuntu1 [2011/09/27] for x86_64
Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Linux for x86-64
Compiling gearhead.pas
Compiling gears.pp
Compiling texutil.pp
Compiling navigate.pp
Compiling locale.pp
Compiling rpgdice.pp
Compiling gamebook.pp
Compiling ghmecha.pp
Compiling uiconfig.pp
Compiling ghmodule.pp
Compiling ghholder.pp
Compiling ghintrinsic.pp
Compiling ghchars.pp
Compiling ghweapon.pp
Compiling ghmovers.pp
Compiling ghsensor.pp
Compiling ghsupport.pp
Compiling ghguard.pp
Compiling ghswag.pp
Compiling ghprop.pp
Compiling movement.pp
Compiling ability.pp
ability.pp(245,4) Note: Local variable "Tool" not used
locale.pp(1181,4) Note: Local variable "P" not used
Compiling backpack.pp
Compiling sdlgfx.pp
sdlgfx.pp(47,49) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(48,48) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(49,44) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(50,49) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(51,49) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(52,49) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(53,50) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(55,48) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(56,48) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(57,48) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(58,49) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(59,50) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(60,48) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(61,52) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(64,49) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(730,2) Note: Local variable "S" not used
sdlgfx.pp(1452,2) Note: Local variable "MyDest" not used
Compiling action.pp
Compiling arenacfe.pp
Compiling effects.pp
Compiling gearparser.pp
Compiling interact.pp
Compiling narration.pp
Compiling menugear.pp
Compiling sdlmenus.pp
Compiling skilluse.pp
skilluse.pp(278,4) Note: Local variable "Total" not used
effects.pp(2308,3) Note: Local variable "trait" not used
Compiling description.pp
Compiling sdlmap.pp
Compiling colormenu.pp
sdlmap.pp(99,48) Warning: Some fields coming after "B" weren't initialized
sdlmap.pp(100,48) Warning: Some fields coming after "B" weren't initialized
sdlmap.pp(101,47) Warning: Some fields coming after "B" weren't initialized
sdlmap.pp(102,51) Warning: Some fields coming after "B" weren't initialized
sdlmap.pp(103,50) Warning: Some fields coming after "B" weren't initialized
sdlmap.pp(194,2) Note: Local variable "X" not used
sdlmap.pp(194,4) Note: Local variable "Y" not used
sdlmap.pp(194,6) Note: Local variable "Z" not used
sdlmap.pp(692,30) Note: Local variable "Row" not used
sdlmap.pp(692,34) Note: Local variable "Column" not used
sdlmap.pp(695,2) Note: Local variable "Spr" not used
sdlmap.pp(931,4) Note: Local variable "Y" not used
sdlmap.pp(931,6) Note: Local variable "Z" not used
sdlmap.pp(932,2) Note: Local variable "M" not used
sdlmap.pp(99,2) Note: Local variable "WallBrown" not used
sdlmap.pp(100,2) Note: Local variable "DoorBlue" not used
sdlmap.pp(101,2) Note: Local variable "WallGray" not used
sdlmap.pp(102,2) Note: Local variable "SmokeGray" not used
sdlmap.pp(103,2) Note: Local variable "ToxicGreen" not used
sdlmap.pp(160,32) Note: Local variable "Items_Sprite" is assigned but never used
Compiling sdlinfo.pp
Compiling minitype.pp
sdlinfo.pp(60,51) Warning: Some fields coming after "b" weren't initialized
sdlinfo.pp(61,47) Warning: Some fields coming after "b" weren't initialized
sdlinfo.pp(62,49) Warning: Some fields coming after "b" weren't initialized
sdlinfo.pp(63,48) Warning: Some fields coming after "b" weren't initialized
sdlinfo.pp(64,52) Warning: Some fields coming after "b" weren't initialized
sdlinfo.pp(65,47) Warning: Some fields coming after "b" weren't initialized
sdlinfo.pp(268,11) Note: Local variable "Armor" not used
sdlinfo.pp(268,17) Note: Local variable "Structure" not used
sdlinfo.pp(211,2) Note: Local variable "MM" not used
sdlinfo.pp(211,5) Note: Local variable "A" not used
sdlinfo.pp(211,7) Note: Local variable "B" not used
sdlinfo.pp(432,4) Note: Local variable "X" not used
sdlinfo.pp(473,2) Note: Local variable "CurP" not used
sdlinfo.pp(473,7) Note: Local variable "MaxP" not used
sdlinfo.pp(499,2) Note: Local variable "Box" not used
sdlinfo.pp(499,6) Note: Local variable "Box2" not used
sdlinfo.pp(500,2) Note: Local variable "HP" not used
sdlinfo.pp(500,5) Note: Local variable "HPD" not used
sdlinfo.pp(718,6) Note: Local variable "job" not used
sdlinfo.pp(1248,3) Note: Local variable "T" not used
sdlinfo.pp(1248,11) Note: Local variable "S" not used
sdlinfo.pp(1250,3) Note: Local variable "C" not used
arenacfe.pp(143,2) Note: Local variable "P" not used
arenacfe.pp(482,2) Note: Local variable "N" is assigned but never used
Compiling arenascript.pp
Compiling plotbuild.pp
Compiling chargen.pp
Compiling wmonster.pp
Compiling customization.pp
Compiling plotsearch.pp
Compiling randmaps.pp
randmaps.pp(748,4) Note: Local variable "MiniMap" not used
randmaps.pp(2597,2) Note: Local variable "ContentID" not used
randmaps.pp(2624,3) Warning: Comment level 2 found
randmaps.pp(2625,2) Warning: Comment level 2 found
randmaps.pp(2630,2) Warning: Comment level 2 found
randmaps.pp(2634,3) Warning: Comment level 2 found
randmaps.pp(2637,3) Warning: Comment level 2 found
randmaps.pp(2644,3) Warning: Comment level 2 found
randmaps.pp(2645,3) Warning: Comment level 2 found
randmaps.pp(2646,3) Warning: Comment level 2 found
randmaps.pp(2652,4) Warning: Comment level 2 found
randmaps.pp(2653,4) Warning: Comment level 2 found
randmaps.pp(2656,3) Warning: Comment level 2 found
randmaps.pp(2657,3) Warning: Comment level 2 found
randmaps.pp(2659,4) Warning: Comment level 2 found
randmaps.pp(2662,4) Warning: Comment level 2 found
randmaps.pp(2669,7) Warning: Comment level 2 found
randmaps.pp(2671,2) Warning: Comment level 2 found
randmaps.pp(2682,2) Warning: Comment level 2 found
randmaps.pp(2617,2) Note: Local variable "AllOK" not used
randmaps.pp(2618,2) Note: Local variable "CList" not used
randmaps.pp(2619,2) Note: Local variable "Zone" not used
randmaps.pp(2619,7) Note: Local variable "C" not used
randmaps.pp(2619,9) Note: Local variable "C2" not used
randmaps.pp(2620,2) Note: Local variable "ContentID" not used
randmaps.pp(2621,2) Note: Local variable "T" not used
randmaps.pp(2622,2) Note: Local variable "UCon" not used
randmaps.pp(2622,7) Note: Local variable "U" not used
plotbuild.pp(1197,3) Note: Local variable "Param" not used
plotbuild.pp(1734,2) Note: Local variable "Trigger" not used
plotbuild.pp(1880,5) Warning: Local variable "it" does not seem to be initialized
plotbuild.pp(1928,3) Note: Local variable "N" not used
plotbuild.pp(2071,8) Note: Local variable "DC" is assigned but never used
Compiling services.pp
Compiling minigame.pp
Compiling aibrain.pp
Compiling specialsys.pp
aibrain.pp(1204,2) Warning: Comment level 2 found
aibrain.pp(1205,2) Warning: Comment level 2 found
aibrain.pp(1214,3) Warning: Comment level 2 found
aibrain.pp(1220,3) Warning: Comment level 2 found
aibrain.pp(1231,3) Warning: Comment level 2 found
aibrain.pp(1237,3) Warning: Comment level 2 found
aibrain.pp(1247,2) Warning: Comment level 2 found
aibrain.pp(1255,3) Warning: Comment level 2 found
aibrain.pp(1271,3) Warning: Comment level 2 found
aibrain.pp(1322,3) Warning: Comment level 2 found
aibrain.pp(1324,4) Warning: Comment level 2 found
aibrain.pp(1328,4) Warning: Comment level 2 found
aibrain.pp(1330,5) Warning: Comment level 2 found
aibrain.pp(1334,5) Warning: Comment level 2 found
aibrain.pp(1341,4) Warning: Comment level 2 found
aibrain.pp(1349,3) Warning: Comment level 2 found
aibrain.pp(1351,4) Warning: Comment level 2 found
aibrain.pp(1355,4) Warning: Comment level 2 found
aibrain.pp(1357,5) Warning: Comment level 2 found
aibrain.pp(1361,5) Warning: Comment level 2 found
aibrain.pp(1368,4) Warning: Comment level 2 found
aibrain.pp(1288,12) Note: Local variable "Tool" not used
arenascript.pp(230,10) Warning: Function result does not seem to be set
arenascript.pp(236,10) Warning: Function result does not seem to be set
arenascript.pp(239,2) Note: Local variable "Rumor_Error" not used
arenascript.pp(939,6) Note: Local variable "memo_msg" not used
arenascript.pp(998,2) Note: Local variable "RL" not used
arenascript.pp(998,5) Note: Local variable "RL_Skill" not used
arenascript.pp(999,2) Note: Local variable "SkVal" not used
arenascript.pp(999,8) Note: Local variable "BestScore" not used
arenascript.pp(999,18) Note: Local variable "SkRoll" not used
arenascript.pp(1000,2) Note: Local variable "NPCDesc" not used
arenascript.pp(1000,10) Note: Local variable "RL_Script" not used
arenascript.pp(1001,2) Note: Local variable "Rumor_List" not used
arenascript.pp(1001,13) Note: Local variable "R" not used
arenascript.pp(1002,2) Note: Local variable "Rumor_Error" not used
arenascript.pp(1003,2) Note: Local variable "RPM" not used
arenascript.pp(1223,2) Note: Local variable "IntScr" not used
arenascript.pp(1224,4) Note: Local variable "FreeRumors" not used
arenascript.pp(1225,2) Note: Local variable "RTT" not used
arenascript.pp(1226,2) Note: Local variable "T" not used
arenascript.pp(1368,19) Warning: Local variable "ReTalk" does not seem to be initialized
arenascript.pp(1458,2) Note: Local variable "LT" not used
arenascript.pp(1458,5) Note: Local variable "TempList" not used
arenascript.pp(1459,2) Note: Local variable "LT_tmp" not used
arenascript.pp(1492,2) Note: Local variable "LT" not used
arenascript.pp(1492,5) Note: Local variable "TempList" not used
arenascript.pp(1493,2) Note: Local variable "LT_tmp" not used
arenascript.pp(1641,5) Warning: Comment level 2 found
arenascript.pp(1642,5) Warning: Comment level 2 found
arenascript.pp(2187,3) Note: Local variable "Renown" not used
arenascript.pp(127,2) Note: Local variable "Debug_On" not used
Compiling targetui.pp
Compiling arenaplay.pp
Compiling pcaction.pp
Compiling robotics.pp
Compiling training.pp
Compiling infodisplay.pp
pcaction.pp(2106,2) Note: Local variable "T" not used
pcaction.pp(2106,4) Note: Local variable "N" not used
arenaplay.pp(107,3) Warning: Comment level 2 found
arenaplay.pp(1049,7) Note: Local variable "X" not used
arenaplay.pp(1049,9) Note: Local variable "Y" not used
Compiling gh2arena.pp
gh2arena.pp(279,2) Note: Local variable "NPC" is assigned but never used
Linking gearhead
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
/usr/bin/ld: cannot find -llua5.1
gearhead.pas(230,1) Error: Error while linking
gearhead.pas(230,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode (normal if you did not specify a source file to be compiled)

I have also tried to run the linux-SDL binaries, but I get a lua related error with that too. Here is the output.

Code: [Select]
~/Downloads/GH2.1$ ./Arena_R
./Arena_R: error while loading shared libraries: liblua5.1.so.0: cannot open shared object file: No such file or directory

Offline Joseph Hewitt

  • Administrator
  • Hero Member
  • *****
  • Posts: 2552
    • View Profile
    • http://www.gearheadrpg.com
Re: GearHead: ArenaR First Release. Merry Christmas!
« Reply #2 on: December 24, 2011, 10:54:08 PM »
It does look like Lua is the problem. I'm running Debian stable now. I have lua5.1, liblua5.1-0-dev (needed to compile), and liblua5.1-0 installed; I seem to recall that all three are important.

Offline SharkD

  • Hero Member
  • *****
  • Posts: 1009
    • View Profile
    • Isometricland
Re: GearHead: ArenaR First Release. Merry Christmas!
« Reply #3 on: December 25, 2011, 03:43:31 PM »
Are you still using Pascal for the non-Lua stuff?

Do I need to re-compile the game every time I modify a quest or dialogue option?

How much game behavior are you planning to externalize?
« Last Edit: December 25, 2011, 05:32:20 PM by SharkD »

Offline Joseph Hewitt

  • Administrator
  • Hero Member
  • *****
  • Posts: 2552
    • View Profile
    • http://www.gearheadrpg.com
Re: GearHead: ArenaR First Release. Merry Christmas!
« Reply #4 on: December 25, 2011, 07:30:50 PM »
Are you still using Pascal for the non-Lua stuff?

Yes, of course. Lua was introduced to replace the homebrew scripting language, not to replace the underlying game engine.

Quote
Do I need to re-compile the game every time I modify a quest or dialogue option?

No, of course not. You've never had to do that in the past so I don't know why you think it would be necessary now.

Quote
How much game behavior are you planning to externalize?

Eventually a lot. For now, as much as is needed to get things running.

Offline Daemonward

  • Full Member
  • ***
  • Posts: 215
    • View Profile
Re: GearHead: ArenaR First Release. Merry Christmas!
« Reply #5 on: December 25, 2011, 07:39:19 PM »
I installed liblua5.1-0-dev and liblua5.1-0. The downloadable linux binaries still give the same error, but now I can compile and run the game from source.

I got through character generation without a hitch. However, once the RPG campaign starts I can only wander around my room unable to open doors or interact with objects.



Should there be any difference between compiling with 'fpc gearhead' and compiling with 'fpc Arena_R', because they seem to get the same results. Here is my output when compiling.

Code: [Select]
~/Downloads/GH2.1$ fpc Arena_R
Free Pascal Compiler version 2.4.4-2ubuntu1 [2011/09/27] for x86_64
Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Linux for x86-64
Compiling Arena_R.pas
Compiling gears.pp
Compiling texutil.pp
Compiling navigate.pp
Compiling locale.pp
Compiling rpgdice.pp
Compiling gamebook.pp
Compiling ghmecha.pp
Compiling uiconfig.pp
Compiling ghmodule.pp
Compiling ghholder.pp
Compiling ghintrinsic.pp
Compiling ghchars.pp
Compiling ghweapon.pp
Compiling ghmovers.pp
Compiling ghsensor.pp
Compiling ghsupport.pp
Compiling ghguard.pp
Compiling ghswag.pp
Compiling ghprop.pp
Compiling movement.pp
Compiling ability.pp
ability.pp(245,4) Note: Local variable "Tool" not used
locale.pp(1181,4) Note: Local variable "P" not used
Compiling backpack.pp
Compiling sdlgfx.pp
sdlgfx.pp(47,49) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(48,48) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(49,44) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(50,49) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(51,49) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(52,49) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(53,50) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(55,48) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(56,48) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(57,48) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(58,49) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(59,50) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(60,48) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(61,52) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(64,49) Warning: Some fields coming after "b" weren't initialized
sdlgfx.pp(730,2) Note: Local variable "S" not used
sdlgfx.pp(1452,2) Note: Local variable "MyDest" not used
Compiling action.pp
Compiling arenacfe.pp
Compiling effects.pp
Compiling gearparser.pp
Compiling interact.pp
Compiling narration.pp
Compiling menugear.pp
Compiling sdlmenus.pp
Compiling skilluse.pp
skilluse.pp(278,4) Note: Local variable "Total" not used
effects.pp(2308,3) Note: Local variable "trait" not used
Compiling description.pp
Compiling sdlmap.pp
Compiling colormenu.pp
sdlmap.pp(99,48) Warning: Some fields coming after "B" weren't initialized
sdlmap.pp(100,48) Warning: Some fields coming after "B" weren't initialized
sdlmap.pp(101,47) Warning: Some fields coming after "B" weren't initialized
sdlmap.pp(102,51) Warning: Some fields coming after "B" weren't initialized
sdlmap.pp(103,50) Warning: Some fields coming after "B" weren't initialized
sdlmap.pp(194,2) Note: Local variable "X" not used
sdlmap.pp(194,4) Note: Local variable "Y" not used
sdlmap.pp(194,6) Note: Local variable "Z" not used
sdlmap.pp(692,30) Note: Local variable "Row" not used
sdlmap.pp(692,34) Note: Local variable "Column" not used
sdlmap.pp(695,2) Note: Local variable "Spr" not used
sdlmap.pp(931,4) Note: Local variable "Y" not used
sdlmap.pp(931,6) Note: Local variable "Z" not used
sdlmap.pp(932,2) Note: Local variable "M" not used
sdlmap.pp(99,2) Note: Local variable "WallBrown" not used
sdlmap.pp(100,2) Note: Local variable "DoorBlue" not used
sdlmap.pp(101,2) Note: Local variable "WallGray" not used
sdlmap.pp(102,2) Note: Local variable "SmokeGray" not used
sdlmap.pp(103,2) Note: Local variable "ToxicGreen" not used
sdlmap.pp(160,32) Note: Local variable "Items_Sprite" is assigned but never used
Compiling sdlinfo.pp
Compiling minitype.pp
sdlinfo.pp(60,51) Warning: Some fields coming after "b" weren't initialized
sdlinfo.pp(61,47) Warning: Some fields coming after "b" weren't initialized
sdlinfo.pp(62,49) Warning: Some fields coming after "b" weren't initialized
sdlinfo.pp(63,48) Warning: Some fields coming after "b" weren't initialized
sdlinfo.pp(64,52) Warning: Some fields coming after "b" weren't initialized
sdlinfo.pp(65,47) Warning: Some fields coming after "b" weren't initialized
sdlinfo.pp(268,11) Note: Local variable "Armor" not used
sdlinfo.pp(268,17) Note: Local variable "Structure" not used
sdlinfo.pp(211,2) Note: Local variable "MM" not used
sdlinfo.pp(211,5) Note: Local variable "A" not used
sdlinfo.pp(211,7) Note: Local variable "B" not used
sdlinfo.pp(432,4) Note: Local variable "X" not used
sdlinfo.pp(473,2) Note: Local variable "CurP" not used
sdlinfo.pp(473,7) Note: Local variable "MaxP" not used
sdlinfo.pp(499,2) Note: Local variable "Box" not used
sdlinfo.pp(499,6) Note: Local variable "Box2" not used
sdlinfo.pp(500,2) Note: Local variable "HP" not used
sdlinfo.pp(500,5) Note: Local variable "HPD" not used
sdlinfo.pp(718,6) Note: Local variable "job" not used
sdlinfo.pp(1248,3) Note: Local variable "T" not used
sdlinfo.pp(1248,11) Note: Local variable "S" not used
sdlinfo.pp(1250,3) Note: Local variable "C" not used
arenacfe.pp(143,2) Note: Local variable "P" not used
arenacfe.pp(482,2) Note: Local variable "N" is assigned but never used
Compiling arenascript.pp
Compiling plotbuild.pp
Compiling chargen.pp
Compiling wmonster.pp
Compiling customization.pp
Compiling plotsearch.pp
Compiling randmaps.pp
randmaps.pp(748,4) Note: Local variable "MiniMap" not used
randmaps.pp(2597,2) Note: Local variable "ContentID" not used
randmaps.pp(2624,3) Warning: Comment level 2 found
randmaps.pp(2625,2) Warning: Comment level 2 found
randmaps.pp(2630,2) Warning: Comment level 2 found
randmaps.pp(2634,3) Warning: Comment level 2 found
randmaps.pp(2637,3) Warning: Comment level 2 found
randmaps.pp(2644,3) Warning: Comment level 2 found
randmaps.pp(2645,3) Warning: Comment level 2 found
randmaps.pp(2646,3) Warning: Comment level 2 found
randmaps.pp(2652,4) Warning: Comment level 2 found
randmaps.pp(2653,4) Warning: Comment level 2 found
randmaps.pp(2656,3) Warning: Comment level 2 found
randmaps.pp(2657,3) Warning: Comment level 2 found
randmaps.pp(2659,4) Warning: Comment level 2 found
randmaps.pp(2662,4) Warning: Comment level 2 found
randmaps.pp(2669,7) Warning: Comment level 2 found
randmaps.pp(2671,2) Warning: Comment level 2 found
randmaps.pp(2682,2) Warning: Comment level 2 found
randmaps.pp(2617,2) Note: Local variable "AllOK" not used
randmaps.pp(2618,2) Note: Local variable "CList" not used
randmaps.pp(2619,2) Note: Local variable "Zone" not used
randmaps.pp(2619,7) Note: Local variable "C" not used
randmaps.pp(2619,9) Note: Local variable "C2" not used
randmaps.pp(2620,2) Note: Local variable "ContentID" not used
randmaps.pp(2621,2) Note: Local variable "T" not used
randmaps.pp(2622,2) Note: Local variable "UCon" not used
randmaps.pp(2622,7) Note: Local variable "U" not used
plotbuild.pp(1197,3) Note: Local variable "Param" not used
plotbuild.pp(1734,2) Note: Local variable "Trigger" not used
plotbuild.pp(1880,5) Warning: Local variable "it" does not seem to be initialized
plotbuild.pp(1928,3) Note: Local variable "N" not used
plotbuild.pp(2071,8) Note: Local variable "DC" is assigned but never used
Compiling services.pp
Compiling minigame.pp
Compiling aibrain.pp
Compiling specialsys.pp
aibrain.pp(1204,2) Warning: Comment level 2 found
aibrain.pp(1205,2) Warning: Comment level 2 found
aibrain.pp(1214,3) Warning: Comment level 2 found
aibrain.pp(1220,3) Warning: Comment level 2 found
aibrain.pp(1231,3) Warning: Comment level 2 found
aibrain.pp(1237,3) Warning: Comment level 2 found
aibrain.pp(1247,2) Warning: Comment level 2 found
aibrain.pp(1255,3) Warning: Comment level 2 found
aibrain.pp(1271,3) Warning: Comment level 2 found
aibrain.pp(1322,3) Warning: Comment level 2 found
aibrain.pp(1324,4) Warning: Comment level 2 found
aibrain.pp(1328,4) Warning: Comment level 2 found
aibrain.pp(1330,5) Warning: Comment level 2 found
aibrain.pp(1334,5) Warning: Comment level 2 found
aibrain.pp(1341,4) Warning: Comment level 2 found
aibrain.pp(1349,3) Warning: Comment level 2 found
aibrain.pp(1351,4) Warning: Comment level 2 found
aibrain.pp(1355,4) Warning: Comment level 2 found
aibrain.pp(1357,5) Warning: Comment level 2 found
aibrain.pp(1361,5) Warning: Comment level 2 found
aibrain.pp(1368,4) Warning: Comment level 2 found
aibrain.pp(1288,12) Note: Local variable "Tool" not used
arenascript.pp(230,10) Warning: Function result does not seem to be set
arenascript.pp(236,10) Warning: Function result does not seem to be set
arenascript.pp(239,2) Note: Local variable "Rumor_Error" not used
arenascript.pp(939,6) Note: Local variable "memo_msg" not used
arenascript.pp(998,2) Note: Local variable "RL" not used
arenascript.pp(998,5) Note: Local variable "RL_Skill" not used
arenascript.pp(999,2) Note: Local variable "SkVal" not used
arenascript.pp(999,8) Note: Local variable "BestScore" not used
arenascript.pp(999,18) Note: Local variable "SkRoll" not used
arenascript.pp(1000,2) Note: Local variable "NPCDesc" not used
arenascript.pp(1000,10) Note: Local variable "RL_Script" not used
arenascript.pp(1001,2) Note: Local variable "Rumor_List" not used
arenascript.pp(1001,13) Note: Local variable "R" not used
arenascript.pp(1002,2) Note: Local variable "Rumor_Error" not used
arenascript.pp(1003,2) Note: Local variable "RPM" not used
arenascript.pp(1223,2) Note: Local variable "IntScr" not used
arenascript.pp(1224,4) Note: Local variable "FreeRumors" not used
arenascript.pp(1225,2) Note: Local variable "RTT" not used
arenascript.pp(1226,2) Note: Local variable "T" not used
arenascript.pp(1368,19) Warning: Local variable "ReTalk" does not seem to be initialized
arenascript.pp(1458,2) Note: Local variable "LT" not used
arenascript.pp(1458,5) Note: Local variable "TempList" not used
arenascript.pp(1459,2) Note: Local variable "LT_tmp" not used
arenascript.pp(1492,2) Note: Local variable "LT" not used
arenascript.pp(1492,5) Note: Local variable "TempList" not used
arenascript.pp(1493,2) Note: Local variable "LT_tmp" not used
arenascript.pp(1641,5) Warning: Comment level 2 found
arenascript.pp(1642,5) Warning: Comment level 2 found
arenascript.pp(2187,3) Note: Local variable "Renown" not used
arenascript.pp(127,2) Note: Local variable "Debug_On" not used
Compiling targetui.pp
Compiling arenaplay.pp
Compiling pcaction.pp
Compiling robotics.pp
Compiling training.pp
Compiling infodisplay.pp
pcaction.pp(2106,2) Note: Local variable "T" not used
pcaction.pp(2106,4) Note: Local variable "N" not used
arenaplay.pp(107,3) Warning: Comment level 2 found
arenaplay.pp(1049,7) Note: Local variable "X" not used
arenaplay.pp(1049,9) Note: Local variable "Y" not used
Compiling gh2arena.pp
gh2arena.pp(279,2) Note: Local variable "NPC" is assigned but never used
Linking Arena_R
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
62521 lines compiled, 2.3 sec
71 warning(s) issued
85 note(s) issued

Offline Joseph Hewitt

  • Administrator
  • Hero Member
  • *****
  • Posts: 2552
    • View Profile
    • http://www.gearheadrpg.com
Re: GearHead: ArenaR First Release. Merry Christmas!
« Reply #6 on: December 25, 2011, 07:44:12 PM »
That's a Lua initialization problem. In your game directory there should be a file called errors.txt- if you could find that and post the first few lines, before all the "HandleTrigger ERROR"s start, I should be able to see what's going on.

Maybe the precompiled version doesn't work because I'm on Debian and you're on Ubuntu? Could be that it's looking in the wrong place for the Lua libraries.

Offline Daemonward

  • Full Member
  • ***
  • Posts: 215
    • View Profile
Re: GearHead: ArenaR First Release. Merry Christmas!
« Reply #7 on: December 25, 2011, 09:28:02 PM »
Here is the first few lines of errors.txt
Code: [Select]
%%% File saved by SaveStringList %%%
LoadSAttScripts ERROR: [string "LoadSAttScripts"]:1: unexpected symbol
LoadLuaConstants ERROR: attempt to call a string value
GH_INIT ERROR: gamedata/gh_init.lua:242: table index is nil

This is followed my many lines of:

Register ERROR: Cannot register before LUA_IS_GO

and

Register ERROR: Cannot register variables before LUA_IS_GO

and finally

HandleTrigger ERROR: attempt to call a nil value

Ubuntu probably moved a few things around when they introduced multi-architecture support. It looks like for 64-bit Ubuntu, the Lua libraries are located at /usr/lib/x86_64-linux-gnu/liblua5.1.so.0
(and for 32-bit Ubuntu, they are located at /usr/lib/i386-linux-gnu/liblua5.1.so.0)

Offline Joseph Hewitt

  • Administrator
  • Hero Member
  • *****
  • Posts: 2552
    • View Profile
    • http://www.gearheadrpg.com
Re: GearHead: ArenaR First Release. Merry Christmas!
« Reply #8 on: December 25, 2011, 10:31:34 PM »
Weird. I tried to reproduce this bug by compiling from the source archive, but the blasted thing won't stop working. The problem seems to be that "gamedata/gh_constants.txt" isn't loading. Some thoughts:
  • Make sure the file is where it needs to be, first off. It's possible that something went wrong with the archive or the unpacking.
  • Edit the file and remove the Pascal comment in line one. This line shouldn't be read into Lua, but if it were this could explain the "unexplained symbol" error.
Other than that I'm not really sure. The other stuff seems to be loading correctly, so it can't be a home directory issue. One other thing you could try would be to remove the comment from gh_constants.txt (but keep a blank line there) and change the following in gears.pp:

Code: [Select]
LoadLuaConstants;


to:

Code: [Select]
if lua_dofile( MyLua , 'gamedata/gh_constants.txt' ) <> 0 then RecordError( 'GH_CONSTANTS ERROR: ' + lua_tostring( MyLua , -1 ) );

This will bypass the LoadSAttScripts function, so if it still doesn't work that'll rule out any bugs there (and if it suddenly works, that means we've found the bug).

Good luck, and let me know how it goes.

Edit- One more thought. Make sure you "delp ." (remove all *.o, *.ppu) files before recompiling.

Edit2- I've managed to reproduce the error messages, if not the exact bug, by shifting the Pascal comment in gh_constants.txt down one line. Normally the first line is discarded by LoadLuaConstants();. Here's my error message:

Code: [Select]
%%% File saved by SaveStringList %%%
LoadSAttScripts ERROR: [string "LoadSAttScripts"]:1: unexpected symbol near '{'
LoadLuaConstants ERROR: attempt to call a string value
GH_INIT ERROR: gamedata/gh_init.lua:242: table index is nil
Register ERROR: Cannot register before LUA_IS_GO
« Last Edit: December 25, 2011, 11:01:41 PM by Joseph Hewitt »

Offline Phil Munoz

  • Full Member
  • ***
  • Posts: 247
    • View Profile
    • http://aquietfrog.deviantart.com
Re: GearHead: ArenaR First Release. Merry Christmas!
« Reply #9 on: December 26, 2011, 12:56:19 AM »
I can't seem to run the Windows SDL version of this.

I get an error when I run the exe file.



I'm running Windows Vista on a laptop

not sure what's wrong.  I just extracted the zip file into a folder.
« Last Edit: December 26, 2011, 12:59:35 AM by Phil Munoz »

Offline Joseph Hewitt

  • Administrator
  • Hero Member
  • *****
  • Posts: 2552
    • View Profile
    • http://www.gearheadrpg.com
Re: GearHead: ArenaR First Release. Merry Christmas!
« Reply #10 on: December 26, 2011, 01:35:47 AM »
Grr. This is the worst part of releasing a new program- finding out that it runs fine here but doesn't run there and not being able to reproduce the bugs. Fortunately this one I did reproduce- the Windows binary archive left out the "setting" folder. I've just uploaded a fix so you can try again in a little while.

Offline Francisco Munoz

  • Sr. Member
  • ****
  • Posts: 401
    • View Profile
    • http://www.wesnoth.org
Re: GearHead: ArenaR First Release. Merry Christmas!
« Reply #11 on: December 26, 2011, 06:44:33 AM »
Got a crash in Windows 7 while recalling rumours.

Offline Joseph Hewitt

  • Administrator
  • Hero Member
  • *****
  • Posts: 2552
    • View Profile
    • http://www.gearheadrpg.com
Re: GearHead: ArenaR First Release. Merry Christmas!
« Reply #12 on: December 26, 2011, 07:23:58 AM »
Got a crash in Windows 7 while recalling rumours.

But it runs! For tonight, I'm willing to count that as a victory. Have you explored the world map at all?

Offline Francisco Munoz

  • Sr. Member
  • ****
  • Posts: 401
    • View Profile
    • http://www.wesnoth.org
Re: GearHead: ArenaR First Release. Merry Christmas!
« Reply #13 on: December 26, 2011, 09:15:58 AM »
A bit, checked the arena (win and lost a couple of times), shop, mine (died, no end reward for me) and just checked the main west road (lower west water tile in the corner looked funny)

Offline Daemonward

  • Full Member
  • ***
  • Posts: 215
    • View Profile
Re: GearHead: ArenaR First Release. Merry Christmas!
« Reply #14 on: December 26, 2011, 11:29:44 AM »
We're making progress!

I removed the comment from gh_constants.txt (but keep a blank line there) and changed the line in gears.pp as you suggested.

Now I can open doors, wander around the city map, and enter buildings, but it would appear that talking to people isn't working.



Here are the contents of errors.txt

Code: [Select]
%%% File saved by SaveStringList %%%
LoadSAttScripts ERROR: [string "LoadSAttScripts"]:3: unexpected symbol
Register ERROR: gamedata/gh_init.lua:325: attempt to call a string value
LoadSAttScripts ERROR: [string "LoadSAttScripts"]:1: unexpected symbol
Register ERROR: gamedata/gh_init.lua:325: attempt to call a string value
LoadSAttScripts ERROR: [string "LoadSAttScripts"]:1: unexpected symbol
Register ERROR: gamedata/gh_init.lua:325: attempt to call a string value
LoadSAttScripts ERROR: [string "LoadSAttScripts"]:3: unexpected symbol
Register ERROR: gamedata/gh_init.lua:325: attempt to call a string value
LoadSAttScripts ERROR: [string "LoadSAttScripts"]:1: unexpected symbol
Register ERROR: gamedata/gh_init.lua:325: attempt to call a string value
LoadSAttScripts ERROR: [string "LoadSAttScripts"]:2: unexpected symbol
Register ERROR: gamedata/gh_init.lua:325: attempt to call a string value
LoadSAttScripts ERROR: [string "LoadSAttScripts"]:2: unexpected symbol
Register ERROR: gamedata/gh_init.lua:325: attempt to call a string value
LoadSAttScripts ERROR: [string "LoadSAttScripts"]:2: unexpected symbol
Register ERROR: gamedata/gh_init.lua:325: attempt to call a string value
LoadSAttScripts ERROR: [string "LoadSAttScripts"]:3: unexpected symbol
Register ERROR: gamedata/gh_init.lua:325: attempt to call a string value
LoadSAttScripts ERROR: [string "LoadSAttScripts"]:2: unexpected symbol
Register ERROR: gamedata/gh_init.lua:325: attempt to call a string value
LoadSAttScripts ERROR: [string "LoadSAttScripts"]:1: unexpected symbol
Register ERROR: gamedata/gh_init.lua:325: attempt to call a string value
LoadSAttScripts ERROR: [string "LoadSAttScripts"]:1: unexpected symbol
Register ERROR: gamedata/gh_init.lua:325: attempt to call a string value
LoadSAttScripts ERROR: [string "LoadSAttScripts"]:1: unexpected symbol
Register ERROR: gamedata/gh_init.lua:325: attempt to call a string value
LoadSAttScripts ERROR: [string "LoadSAttScripts"]:1: unexpected symbol
Register ERROR: gamedata/gh_init.lua:325: attempt to call a string value
LoadSAttScripts ERROR: [string "LoadSAttScripts"]:3: unexpected symbol
Register ERROR: gamedata/gh_init.lua:325: attempt to call a string value
LoadSAttScripts ERROR: [string "LoadSAttScripts"]:1: unexpected symbol
Register ERROR: gamedata/gh_init.lua:325: attempt to call a string value
LoadSAttScripts ERROR: [string "LoadSAttScripts"]:3: unexpected symbol
Register ERROR: gamedata/gh_init.lua:325: attempt to call a string value
LoadSAttScripts ERROR: [string "LoadSAttScripts"]:3: unexpected symbol
Register ERROR: gamedata/gh_init.lua:325: attempt to call a string value
InvokePNode ERROR: gamedata/gh_init.lua:412: Cannot find persona node node_101