Evil Mr Henry
unread,Feb 4, 2013, 10:09:25 PM2/4/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to endgame-singularity-dev
I checked in the latest source, and there are changes in this area, at
least some of which look useful. I don't know how much it would help,
but you may have better luck downloading a copy of the repository, and
working off that. It's much more up-to-date than the version on the website.
On 02/04/2013 04:44 AM, ken lamblin wrote:
> hello
>
> to introduce myself, i'm ken, french and i like singularity.
> while playng i told myself: why not? but i don't know much python.
> i learn by myself and up today i'm stuck on just one thing that i don't
> understand
>
>
>
> my only question would be : how can i change values for
>
> len(modifier_sets)
> and/or
> for i, open_loc in enumerate(open)
>
> in /code/g.py
>
> if you can help me, i'd be glad, thx anyway
> with the mail, a screenshot of the today map when using saved game, but
> needs some adjustment for sure
>
>
> i wanted more locations, so i puted some more in *.dat, changed "all"
> and "pop" in item.py etc but when i try to begin new game it tells me:
>
> kpozn@multiboot:~/T�l�chargements/0/30k$ python singularity.py
> Loaded 55 techs.
> Traceback (most recent call last):
> File "singularity.py", line 1, in <module>
> import code.singularity
> File "/home/kpozn/T�l�chargements/0/30k/code/singularity.py", line
> 212, in <module>
> menu_screen.show()
> File "/home/kpozn/T�l�chargements/0/30k/code/graphics/dialog.py",
> line 188, in show
> result = self.handle(event)
> File "/home/kpozn/T�l�chargements/0/30k/code/graphics/dialog.py",
> line 315, in handle
> return self.call_handlers(handlers, event)
> File "/home/kpozn/T�l�chargements/0/30k/code/graphics/dialog.py",
> line 327, in call_handlers
> handler(event)
> File "/home/kpozn/T�l�chargements/0/30k/code/graphics/button.py",
> line 97, in handle_event
> self.activate_with_sound(event)
> File "/home/kpozn/T�l�chargements/0/30k/code/graphics/button.py",
> line 110, in activate_with_sound
> self.activated(event)
> File "/home/kpozn/T�l�chargements/0/30k/code/graphics/button.py",
> line 138, in activated
> self.function(*self.args, **self.kwargs)
> File "/home/kpozn/T�l�chargements/0/30k/code/screens/main_menu.py",
> line 91, in new_game
> g.new_game(difficulty)
> File "/home/kpozn/T�l�chargements/0/30k/code/g.py", line 1204, in
> new_game
> open_loc.modifiers = modifier_sets[q]
> IndexError: list index out of range
>
> with a "print" i saw :
> random.shuffle(modifier_sets)
> for i, open_loc in enumerate(open):
> for print i : 0 1 2 3 4 5 6 (seems old conf)
> for print len(open) : 25 (that's right here)
> for print len(modifier_sets) : 6 (only 6)
>
>
>
>
>
> and when i use a saved game new loc appears but it can't rebuild it, (
> an dby the way have some bugs and sometines exits but i'll see that later):
>
> Warning: <code.graphics.button.FunctionButton object at 0x2d4fd50> can't
> fit on its parent.
> (2726, 1760) (154, 40) (0, 0) (1, 1)
> Exception in function show at Mon Feb 4 13:18:55 2013 CEST:
> Traceback (most recent call last):
> File "/home/kpozn/T�l�chargements/0/30k/code/safety.py", line 48, in
> safe_call
> return func(*args, **kwargs) #just here :kpozn
> File "/home/kpozn/T�l�chargements/0/30k/code/graphics/dialog.py",
> line 185, in show
> Dialog.top.maybe_update()
> File "/home/kpozn/T�l�chargements/0/30k/code/graphics/widget.py",
> line 297, in maybe_update
> self.update()
> File "/home/kpozn/T�l�chargements/0/30k/code/graphics/widget.py",
> line 301, in update
> self.prepare_for_redraw()
> File "/home/kpozn/T�l�chargements/0/30k/code/graphics/widget.py",
> line 293, in prepare_for_redraw
> child.prepare_for_redraw()
> File "/home/kpozn/T�l�chargements/0/30k/code/graphics/widget.py",
> line 280, in prepare_for_redraw
> self.rebuild()
> File "/home/kpozn/T�l�chargements/0/30k/code/screens/map.py", line
> 598, in rebuild
> location = g.locations[id]
> KeyError: 'EGYPTE'
>
> by the way i made traductions in french if you're interested, but i
> couldn't use traduko, all hand done in *.dat