Update Request

Discussion and feedback on Construct 2

Post » Thu Apr 23, 2015 10:58 pm

@Ashley
I was just request some small update if possible.
First: is the paste and replace when it comes numbers.
Example:
Image
In the second image this is what happen when you highlight and paste the value you have in your clipboard it don't replace it just add it to it.
Image

Second: is when you delete something from project it mess up everything.
Example:
Image
In the second image this is what happen just by deleting the sound global variable; the entire line of code got deleted just imagine you have a large project and just by deleting one thing you have to start over.
Image
what you could do is something like this to state that something is wrong with the line of code and it would be use full if you delete something every line of code to be corrected would be highlighted.
Image

Last but not least: maybe you could add the option to set our own shortcut key if possible.

If i have anymore suggestion I'll let you know.

Please and Thank you.
B
27
S
5
G
1
Posts: 15
Reputation: 1,849

Post » Thu Apr 23, 2015 11:01 pm

Thanks for detailed presentation. Both issues were mentioned on several occasions, but nothing was done about them.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
91
S
30
G
22
Posts: 1,985
Reputation: 20,149

Post » Fri Apr 24, 2015 1:08 am

Your welcome,
I don't know that anybody had mentioned them before cause they may seem like a small problem you could say but it would by go to see some change.
Its also go to hear that i'm not the only one seeing them.
B
27
S
5
G
1
Posts: 15
Reputation: 1,849

Post » Fri Apr 24, 2015 1:19 am

+1
B
92
S
30
G
11
Posts: 654
Reputation: 11,707

Post » Fri Apr 24, 2015 10:51 am

The first problem (pasting) is difficult because that control is handled by our UI library, and it's very difficult to change it. Hopefully it's not too much of a problem.

The second issue (removing events when things they refer to are deleted) is by design. It is a very difficult problem to leave a condition or action that refers to something that has been deleted. Consider if in your example you did this:

- delete the 'sound' variable
- save the project, close and reopen it
- now the editor has an action with an expression referring to "Sound", but it has no idea what it is
- then you create a new object type called "Sound" - say, a Sprite or something unrelated to what it used to be
- the name of an object by itself is a syntax error, e.g. you can't just have the name "Sprite" as an expression. So now the action no longer refers to anything deleted, but is still invalid.

Another example would be to delete a number variable used in a number parameter, recreate it as a string variable, and then you have an invalid parameter because it's the wrong type. Currently the editor stops this by preventing you changing the type of variables that have any references in events, but deleting and recreating would work around this.

This is one of those ideas which is far more complicated than you probably imagine it to be. It creates an opportunity to create "valid" conditions and actions (ones that do not refer to anything deleted) which contain a syntax error. This is inconsistent with the rest of the editor, since you are not allowed to create a condition or action if any of its parameters are invalid. IMO this is a major advantage of the event system, since you know everything you're looking at is valid, and you avoid running in to syntax error/invalid code type problems that you get with traditional programming languages. So allowing a loophole to create invalid events seems like it would just make things worse.

IMO a better solution is to provide tools for reviewing the project, so you can find all references to an object or variable, and view a list of everywhere it's used. Perhaps this list could be shown before deleting anything with a message like "Note that deleting this object/variable will also remove the following places where it is used". Then you also have the opportunity to go and update all those locations, and safely delete the object/variable afterwards without other things disappearing.
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,361

Post » Fri Apr 24, 2015 11:28 am

@Ashley

What if the object was deleted, could the object in the event be replaced with something like "EmptyVoid".

Also, I think it's smart that it deleted the events, this way there's no broken code. But it would be great if you had a pop up menu showing all the events the object is used in before you click YES to delete it.
The moderators are corrupt and ban for no reason, especially that condescending neckbeard asshole Kyatric. The forums are filled with fanboys.
Banned User
B
22
S
7
G
1
Posts: 558
Reputation: 2,925

Post » Fri Apr 24, 2015 1:32 pm

@Ashley
That sound good,
I wasn't really thinking about the disadvantage that could happen but you really sum it up in a nutshell the idea you convey fix the problem without cause a problem.
That is why your the man and we are the customer we voice our opinion and you come up with a solution.
OK then let see how it unfold from here on.
thank in advance.
B
27
S
5
G
1
Posts: 15
Reputation: 1,849

Post » Fri Apr 24, 2015 2:44 pm

Nesteris wrote:What if the object was deleted, could the object in the event be replaced with something like "EmptyVoid".

I don't think it's any better - that actually modifies a random bunch of your events, so you'd still have to go through and clean up a bunch of "EmptyVoid" expressions or just leave them cluttering up the project.
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,361

Post » Fri Apr 24, 2015 3:35 pm

Current "Else" condition is the best example. If you put "else" in wrong place then you can't start the preview

Image

If you delete something important then highlight events with mistakes and don't let user do anything before fixing that broken events. If the name of that variable or something is an issue here, then why editor can't replace it with something. I'm sure C2 can handle making an internal temporary list containing names of broken variables and simply use these void names in events. And when user fix all broken events then the list could be removed.

There's a lot of possibilities to make it happen without making a mess, question is if devs want to something about it, or leave it like other unfinished "features".
ImageImageImageImage
B
158
S
66
G
43
Posts: 2,603
Reputation: 35,868

Post » Mon Apr 27, 2015 9:58 am

shinkan wrote:Current "Else" condition is the best example. If you put "else" in wrong place then you can't start the preview

Image

If you delete something important then highlight events with mistakes and don't let user do anything before fixing that broken events. If the name of that variable or something is an issue here, then why editor can't replace it with something. I'm sure C2 can handle making an internal temporary list containing names of broken variables and simply use these void names in events. And when user fix all broken events then the list could be removed.

There's a lot of possibilities to make it happen without making a mess, question is if devs want to something about it, or leave it like other unfinished "features".


This a much better way than just deleting a bunch of events.... if it can't be done with C2, at least put it in C3.
If it can be done, someone on the web will show you how to do it!

CDASI Games Mentality Break Splat-a-bug FlapFleet Challenge
B
35
S
13
G
7
Posts: 363
Reputation: 7,283

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 11 guests