Author Topic: Reporting Errors:  (Read 352585 times)

0 Members and 5 Guests are viewing this topic.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: Reporting Errors:
« Reply #315 on: February 26, 2014, 03:28:53 PM »
You say it, but .... this is currently working.

I just tested to be 101% sure instead of 100% :)

Double quotes works as well, I've pushed your file and a small quickfix to the alignment of name in the say_who window.

Not sure what to do today, I don't want to work on girlsmeets/interactions cause damn SF still doesn't work for you and your texts are better than mine anyway. Better take a look at the TODO list, if nothing fits for an hour of work, I'll make an event or something like that.
Like what we're doing?

Offline Jaeke

  • Jr. Member
  • **
  • Posts: 92
Re: Reporting Errors:
« Reply #316 on: February 26, 2014, 04:33:46 PM »
Doing some minor typo fixes in various files. What have I broken here... wrong encoding?
Was running fine, then deleted all rpyc files and...

While running game code:
  File "game/script.rpy", line 80, in script
  File "game/script.rpy", line 127, in python
  File "game/library/functions.rpy", line 183, in python
ValueError: No JSON object could be decoded

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "C:\renpy-6.16.5-sdk\renpy\execution.py", line 294, in run
    node.execute()
  File "C:\renpy-6.16.5-sdk\renpy\ast.py", line 720, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\renpy-6.16.5-sdk\renpy\python.py", line 1358, in py_exec_bytecode
    exec bytecode in globals, locals
  File "game/script.rpy", line 127, in <module>
    brothels = load_brothels()
  File "game/library/functions.rpy", line 183, in load_brothels
    content = json.load(f)
  File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/json/__init__.py", line 278, in load
  File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/json/__init__.py", line 326, in loads
  File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/json/decoder.py", line 366, in decode
  File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/json/decoder.py", line 384, in raw_decode
ValueError: No JSON object could be decoded

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: Reporting Errors:
« Reply #317 on: February 26, 2014, 04:39:36 PM »
Did you accidentally delete or changed brothels.json file?
Like what we're doing?

Offline Jaeke

  • Jr. Member
  • **
  • Posts: 92
Re: Reporting Errors:
« Reply #318 on: February 26, 2014, 05:12:45 PM »
Still have the buildings.json file, if that's the one you mean. Meh, I'll just discard changes.
What encoding for json files? UTF-8 for everything?
« Last Edit: February 26, 2014, 05:15:57 PM by Jaeke »

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: Reporting Errors:
« Reply #319 on: February 26, 2014, 06:39:23 PM »
Still have the buildings.json file, if that's the one you mean. Meh, I'll just discard changes.
What encoding for json files? UTF-8 for everything?

Yeap, that's would be a solid bet.
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: Reporting Errors:
« Reply #320 on: February 26, 2014, 11:26:57 PM »
I forgot about this + it was very late and I just changed them from "profileneutral" to "profile", "neutral".
That explains why I never saw some pictures  :)
Well, I guess it's possible to quickly replace it with notepad+, providing that you don't use "neutral" string somewhere else.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: Reporting Errors:
« Reply #321 on: February 27, 2014, 03:52:29 AM »
Well, I guess it's possible to quickly replace it with notepad+, providing that you don't use "neutral" string somewhere else.

Alignments I think, but that starts with capital and I don't think we have it anywhere in the interactions file.
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: Reporting Errors:
« Reply #322 on: March 02, 2014, 06:09:13 AM »
If you wait long enough on the victory screen between fights during chainfights, everything will disappear from the screen.
« Last Edit: March 02, 2014, 06:25:27 AM by DarkTl »

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: Reporting Errors:
« Reply #323 on: March 02, 2014, 07:13:45 AM »
If you wait long enough on the victory screen between fights during chainfights, everything will disappear from the screen.

I'll take a look, likely forgot to change something.
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: Reporting Errors:
« Reply #324 on: March 02, 2014, 08:01:14 AM »
I noticed that when you start a new game, chainfights are sorted by difficulty, but after you load a save, there is an entirely different, chaotic order.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: Reporting Errors:
« Reply #325 on: March 02, 2014, 08:13:47 AM »
I noticed that when you start a new game, chainfights are sorted by difficulty, but after you load a save, there is an entirely different, chaotic order.

Normal dicts do not keep order. I could switch to using a slightly messier OrderedDict from collections module or have a forced sorting on show if there actually is something there I could determine difficulty from (boss multiplier maybe)?
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: Reporting Errors:
« Reply #326 on: March 02, 2014, 08:28:08 AM »
Initial multiplier would be better, boss multipliers vary.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: Reporting Errors:
« Reply #327 on: March 02, 2014, 08:32:50 AM »
Initial multiplier would be better, boss multipliers vary.

I'll take a look at what's simpler tonight.
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: Reporting Errors:
« Reply #328 on: March 08, 2014, 03:07:44 AM »
Quote
File "game/library/screens/pyt - screens - gallery.rpy", line 81: u'xysize' is not a keyword argument or valid child for the textbutton statement.
    xysize (1280, 800)
          ^

File "game/library/screens/pyt - screens - girlsmeets.rpy", line 325: u'xysize' is not a keyword argument or valid child for the button statement.
    xysize(350, 90)
          ^

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: Reporting Errors:
« Reply #329 on: March 08, 2014, 01:18:24 PM »


xysize has been introduced in Ren'Py 6.17.x (all versions).

It's about the same as:

Code: [Select]
maximum(x, y)
minimum(x, y)
# And sometimes:
xfill True
yfill True
# as well...

It's a valid kw... I don't know what it is b!tching about...
« Last Edit: March 08, 2014, 08:20:41 PM by Xela »
Like what we're doing?