New Export error?

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Re: New Export error?

Postby Paradox » Fri May 21, 2010 9:40 pm

Looks fine
Paradox
 
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: New Export error?

Postby Jamey » Fri May 21, 2010 9:53 pm

Is it possible that there could be problems with the objects the alc-script is referencing to causing these errors? Or problems with the imager objects? Because before I added the imager (which again, made no changes to the alc-script), the age exported completely fine. But after I added the imager objects, and the screens for the imager, these errors start occurring... :|
KI#46415
Jamey
 
Posts: 528
Joined: Sat Oct 20, 2007 8:32 pm
Location: Chicago, IL

Re: New Export error?

Postby Paradox » Fri May 21, 2010 10:10 pm

This isn't an object issue, but an AlcScript issue. Are you using Blender's Text editor for your alcScript? I'm wondering if a hotkey combination was accidentally adding characters, or if the auto-indent could be to blame...
Paradox
 
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: New Export error?

Postby Jamey » Sat May 22, 2010 6:14 am

Yeah, I always use Blender's Text Editor.

The only hotkeys I can think of ever using are Ctrl-C and Ctrl-V, Copy and Paste. I usually copy needed alc-script and make the substitutions. If I need to use more than one of the same code, I copy and paste the modified code directly in the alc-script, and modify it a second time.

For this example we are solving now, BE1 through BE12 are all bench sit objects. I have 4 benches in my age, each bench having 3 sitting locations.

I started with BE1, and made the changes needed. I copy and pasted it 11 more times directly in the alc-script, and changed all of them to their proper object names and regions assigned (BR1 and BR2). When I exported this, they all worked flawlessly.

Then I added the imager recently. And start getting the errors in the alc-script, even though I changed nothing in the alc-script when adding the imager (at least nothing that I know of)


Here's a picture of how it looks in Blender (if it helps)
KI#46415
Jamey
 
Posts: 528
Joined: Sat Oct 20, 2007 8:32 pm
Location: Chicago, IL

Re: New Export error?

Postby D'Lanor » Sat May 22, 2010 6:59 am

The indentation is now inconsistent. You seem to have lost a space character when you retyped those lines. Yaml usually doesn't mind if the indentation used is 3 or 4 spaces but it should at least be consistent within the same object.
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: New Export error?

Postby Jamey » Sat May 22, 2010 9:52 am

Ah I see it.

- Added a space to each line and it exported successfully!

Thanks a million guys! :)
KI#46415
Jamey
 
Posts: 528
Joined: Sat Oct 20, 2007 8:32 pm
Location: Chicago, IL

Re: New Export error?

Postby Jamey » Sat May 22, 2010 4:19 pm

Ah crap...Just when things exported successfully...

Code: Select all
Compiled with Python version 2.5.2.
Checking for installed Python... got it!
Exporting c:\Program Files\Ubi Soft\Cyan Worlds\Uru - Ages Beyond Myst\dat\Vogok
h_Oglahn.age ...
Args are e_age_final
['e', 'age', 'final']
Exporting age Vogokh_Oglahn
[AlcScript Parser]
Traceback (most recent call last):
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_E
xport.py", line 169, in open_file
    export_age(agename,basepath,selection,merge)
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_E
xport.py", line 62, in export_age
    AlcScript.LoadFromBlender()
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_A
lcScript.py", line 200, in _LoadFromBlender
    AlcScript.objects = AlcScript(text)
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_A
lcScript.py", line 51, in __init__
    self.Read(text)
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_A
lcScript.py", line 63, in Read
    self.content = yaml.safe_load(text)
  File "C:\Python25\lib\site-packages\yaml\__init__.py", line 75, in safe_load
    return load(stream, SafeLoader)
  File "C:\Python25\lib\site-packages\yaml\__init__.py", line 57, in load
    loader = Loader(stream)
  File "C:\Python25\lib\site-packages\yaml\loader.py", line 24, in __init__
    Reader.__init__(self, stream)
  File "C:\Python25\lib\site-packages\yaml\reader.py", line 114, in __init__
    self.determine_encoding()
  File "C:\Python25\lib\site-packages\yaml\reader.py", line 170, in determine_en
coding
    self.update(1)
  File "C:\Python25\lib\site-packages\yaml\reader.py", line 204, in update
    self.check_printable(data)
  File "C:\Python25\lib\site-packages\yaml\reader.py", line 179, in check_printa
ble
    'unicode', "special characters are not allowed")
yaml.reader.ReaderError: unacceptable character #x001f: special characters are n
ot allowed
  in "<string>", position 4717

Code: Select all
VOJournal:
    physical:
        pinned: true
    quickscript:
        simpleclick:
            pythonfile: Vogokh_OglahnBookGUI
            region: JournalRegion

Water:
    type: waveset
    visual:
        waveset:
            envradius: 1371.405
            envmap: ENVtestsky.png
            depthrange:
                opac:
                    start: 0
                    end: 0.5

BE1:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR2
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE1
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE2:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR2
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE2
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE3:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR2
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE3
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE4:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR2
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE4
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE5:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR2
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE5
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE6:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR2
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE6
        actions:
          - type: sittingmod
           sittingmod:
                miscflags: 1

BE7:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                 - type: picking
             - type: objectinbox
                satisfied: true
            actions:
             - type: sittingmod
               ref: sittingmod:BE7
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE8:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
             - type: objectinvolume
                remote: BR1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                 - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE8
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE9:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE9
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE10:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE10
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE11:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE11
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE12:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE12
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1
KI#46415
Jamey
 
Posts: 528
Joined: Sat Oct 20, 2007 8:32 pm
Location: Chicago, IL

Re: New Export error?

Postby Paradox » Sat May 22, 2010 4:38 pm

Same issue as before, in BE7 and BE8. Non-printing characters.
Paradox
 
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: New Export error?

Postby Jamey » Sat May 22, 2010 4:50 pm

...Is there a program or a python script I can use to detect these invisible characters?

Whenever I try to delete what I think the invisible character, it always deletes the letter before it... (I hope that makes sense)
KI#46415
Jamey
 
Posts: 528
Joined: Sat Oct 20, 2007 8:32 pm
Location: Chicago, IL

Re: New Export error?

Postby Paradox » Sat May 22, 2010 5:01 pm

I've been using gvim, but even Notepad should show them (probably as boxes).

If you do use vi/vim/gvim, you can swap the non-printing characters with :%s/^_/ /g :D
Paradox
 
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

PreviousNext

Return to Building

Who is online

Users browsing this forum: No registered users and 2 guests