SaveState growing when using on Collision

Bugs will be moved here once resolved.

Post » Sun May 31, 2015 10:21 pm

Very good idea, @R0J0hound !

One thing though: do you know why it only clean the first collmemory and not the others? I'm not good enough with regular expressions to see why, but right now, it only clean the first collmemory.
B
18
S
5
Posts: 80
Reputation: 1,338

Post » Sun May 31, 2015 11:05 pm

@narFsnw
Ah, I thought there was only one. You need to add "g" to the third parameter I think? In the capx it's just "".
B
91
S
31
G
103
Posts: 5,235
Reputation: 67,756

Post » Sun May 31, 2015 11:06 pm

Yup! That worked! It cleans every collmemory now. Excellent!

Here's the final line, as a reference:
Code: Select all
RegexReplace(SaveStateJSON, """collmemory"":\{.*?\}", "g", """collmemory"":{}")



I really need to learn regex for real!
B
18
S
5
Posts: 80
Reputation: 1,338

Post » Mon Jun 01, 2015 7:50 pm

@narFsnw
I only know enough to get by and even then I usually reference this:

https://developer.mozilla.org/en-US/doc ... xpressions
B
91
S
31
G
103
Posts: 5,235
Reputation: 67,756

Post » Sun Aug 02, 2015 4:06 am

@ashley Unfortunately, i'm sad to report that the fix does not entirely solve the issue. It did solve the issue in @R0J0hound 's small test capx, but in the context of my game, the issue still occur. Some (not all) "collmemory" sections keep expending.

Problem is, depite my best efforts, I've been unable so far to reduce my project to a small capx that would contain just the issue. Starting from an empty capx, I'm just unable to reproduce the issue. Starting from my game and removing stuff, the issue comes and goes without me being able to understand it.

Any ideas or advices?
B
18
S
5
Posts: 80
Reputation: 1,338

Post » Sun Aug 02, 2015 7:12 pm

Ah! I finally managed to reproduce the issue in a small capx. I'll write a new bug report in a moment...
B
18
S
5
Posts: 80
Reputation: 1,338

Post » Sun Aug 02, 2015 8:19 pm

The issue have been submitted here: viewtopic.php?f=151&t=151030
B
18
S
5
Posts: 80
Reputation: 1,338

Previous

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests