Plasmaworks Community
News: SMF - Just Installed!
 
*
Welcome, Guest. Please login or register. September 09, 2010, 05:49:16 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: upgrade problem  (Read 255 times)
PaulLuigi
PlasmaworksDev
Jr. Member
*****
Posts: 91


View Profile
« on: March 01, 2010, 11:08:08 pm »

I'm trying to upgrade Blackout directly to Slag 3 beta 5 (from Slag 2).  I did the gogo upgrade and made most of the relevant source changes (including following all of the steps in the upgrade instructions) and I'm getting this error:

COMPILING FOR VIRTUAL MACHINE
> Execute bin/mac/slagc -platform MAC -src_path "src;libraries;libraries/slag;libraries/slag/standard;libraries/slag/plasmacore" "blackout.slag" -include "plasmacore.slag" -dest_path "build/mac" -output game
Compiling blackout.slag...
Error: Command failed.
  at BuildCore::compile_vm(String) at "build_core.slag" line 292
Visit http://plasmaworks.com/wiki/gogo for help.
BUILD FAILED (2.25 seconds)

I thought it might be related to the same slagc problem I had last time, so I took it off of my path again.  Now which slagc doesn't come up with anything.  But is still has the same problem.  Any thoughts?
Logged
Abe
PlasmaworksDev
Full Member
*****
Posts: 192


View Profile Email
« Reply #1 on: March 02, 2010, 01:53:17 am »

Try copy & pasting the compile command directly:

Code:
bin/mac/slagc -platform MAC -src_path "src;libraries;libraries/slag;libraries/slag/standard;libraries/slag/plasmacore" "blackout.slag" -include "plasmacore.slag" -dest_path "build/mac" -output game

If it just dumps with a bus error (which sounds likely), try using bytecode compiler instead of the executable.  Download the etc file here: http://www.plasmaworks.com/files/plasmacore/slagc.etc

put it in your project base folder, then type:

Code:
bin/mac/slag slagc.etc -platform MAC -src_path "src;libraries;libraries/slag;libraries/slag/standard;libraries/slag/plasmacore" "blackout.slag" -include "plasmacore.slag" -dest_path "build/mac" -output game
Logged
PaulLuigi
PlasmaworksDev
Jr. Member
*****
Posts: 91


View Profile
« Reply #2 on: March 05, 2010, 05:27:24 pm »

Ah, I forgot to notify myself on this topic!  Using the second method got it to at least try to compile, but I'm getting some interesting errors:

PROPERTIES
  stringSet : String[]
  textDrawers : VisibleText[]

...
    textDrawers = ListOf<<VisibleText>>[stringSet.count()]

I may be missing something simple, but I'm not sure what to make of this error:

ERROR:     Missing ']' at end.

LINE 132:  textDrawers = ListOf<<VisibleText>>[stringSet.count()]
Logged
Abe
PlasmaworksDev
Full Member
*****
Posts: 192


View Profile Email
« Reply #3 on: March 05, 2010, 06:17:20 pm »

Looks like a scanner bug.  Just say "ListOf<<Int32>>.create(strings.count)" for now and I'll figure out what the trouble is.

[edit: Er, Parser bug rather.]
Logged
PaulLuigi
PlasmaworksDev
Jr. Member
*****
Posts: 91


View Profile
« Reply #4 on: March 10, 2010, 05:06:01 pm »

I got beyond those errors, but now it's saying that there are undefined types from the standard plasmacore library (like Vector2 and Bitmap).  The [include "plasmacore.slag"] line is the first line of my project, and it is where it's supposed to be in libraries/slag/plasmacore.  Also, every time I compile the project using that long command, it puts a blank plasmacore.slag file in my src/ folder.

One major difference between this project and Cash Cow is that in this case I'm upgrading directly to beta 5, whereas Cash Cow went 3, 4, 5.  Could the upgrade script have changed things?
Logged
Abe
PlasmaworksDev
Full Member
*****
Posts: 192


View Profile Email
« Reply #5 on: March 10, 2010, 05:28:07 pm »

If I recall you adjusted build.slag to touch a file in the src folder so that the project would force-recompile every time (since it didn't know about the slag files in your other folders).  I'll bet it's touching src/plasmacore.slag - which is then getting picked up when plasmacore.slag is included and thus none of the Plasmacore classes are being found.
Logged
PaulLuigi
PlasmaworksDev
Jr. Member
*****
Posts: 91


View Profile
« Reply #6 on: March 10, 2010, 08:18:55 pm »

Ah, good memory!  For Cash Cow we changed it to touching the main class, which is probably a little safer.

Now it compiles, but once it starts running I get an immediate

Fatal Error
Expression Expected

This could be related to an unhandled native call from email or something, but those usually give a different error.  This one I've never seen before.
Logged
Abe
PlasmaworksDev
Full Member
*****
Posts: 192


View Profile Email
« Reply #7 on: March 11, 2010, 12:52:25 am »

That's a loading error, meaning the compiler probably generated the wrong bytecode for one of the less-frequent opcodes.

Send me your game.etc file and I can help track it down.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM