data.js redundant properties #6562
Unanswered
f0nar
asked this question in
Technical questions about the codebase
Replies: 1 comment 5 replies
-
Thank you for reporting this issue, it will be solved by this PR: |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
![Screenshot 2024-05-13 at 14 07 27](https://private-user-images.githubusercontent.com/48058174/330030996-d01f71e5-fd33-42f9-8187-9663a8353314.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU0MjQwMTksIm5iZiI6MTcyNTQyMzcxOSwicGF0aCI6Ii80ODA1ODE3NC8zMzAwMzA5OTYtZDAxZjcxZTUtZmQzMy00MmY5LTgxODctOTY2M2E4MzUzMzE0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA0VDA0MjE1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVhODEwNmIzZDg5YWExOGM5N2Q1ZDY3MWNmZGU3NTJhNjNjMzM5YzgzMjczMThiYWJhYTVmMTI2ZTQxZTE3YzQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.r_IqLwrUdTEbgRixQMPaLGC9t2yeDyOfcl2_o-zHw84)
I created custom extension that includes functions with inline code and custom object (object uses functions). I dont want to share it here as it is super specific testing example for custom needs and I am sure that it will confuse you even more. I think extension structure is the key
Then I exported my game as HTML5 game export and found an interesting thing
All of my inline code which is more then 2.4k lines was wrapped and placed in
gdjs-evtsext__...smth...-func.js
file which is OK. But then I realized that it is duplicated indata.js
file inprojectData.eventsFunctionsExtensions.eventsFunctions
property. I checked GDevelop repo and found thateventsFunctionsExtensions
property is typed asEventsFunctionsExtensionData[]
whereso this duplicated code is not used in runtime in any way as I understand. So why is it there as well as a lot of other properties which are not specified in
![Screenshot 2024-05-13 at 14 25 35](https://private-user-images.githubusercontent.com/48058174/330036424-2a673a4b-80d8-4722-9d00-729b5577746d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU0MjQwMTksIm5iZiI6MTcyNTQyMzcxOSwicGF0aCI6Ii80ODA1ODE3NC8zMzAwMzY0MjQtMmE2NzNhNGItODBkOC00NzIyLTlkMDAtNzI5YjU1Nzc3NDZkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA0VDA0MjE1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY1MzEyMmIzZDAxNjkxOGI3ZjUzNjU3OTlhYzRkOTIzYzExNzE4NWE5Yjk4MDYwNjY5ZTliZTNiYjZlNDAwODYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.i0h5WzJF0GHhFDIjQNYzOjavUBqnbaRDFuGZT7DMy2c)
EventsFunctionsExtensionData
type?In addition I see that there is no such duplications for my other extension that define functions with inline code (but not custom object). Is this due to usage in custom object?
Beta Was this translation helpful? Give feedback.
All reactions