Comments (4)
See Project organization - Case sensitivity.
from godot.
. Attach new scripts in popup using the path "/scripts" (note use lowercase 's')
How did you achieve this? Did you manually enter the path in the text field?
from godot.
Yes, I manually typed it in. I was double clicking the default folder (e.g. Scenes) then typing "scripts". Being lazy, I was not capitalizing the 's' since it worked.
from godot.
@dalexeev, thanks. Sorry, I missed the message. The section specifies that issues may occur when exporting projects. I am still learning Godot so maybe I am missing something.
However, setting the case-sensitivity in Windows (as per your link) avoids the problem from happening (i.e. Godot does not recognize "scripts" and "Scripts" as the same path).
I still feel this is odd behaviour. I was trying to find a suggestion, but I have no C++ experience and no experience with Godot source code. I reviewed some parts of the source code.
My thinking was to have the ScriptCreateDialog::_path_changed set the path equal to whatever the path actually is (e.g. check if the path exists, then read back the path from the OS). So, if a user enters ".../scripts/..." and the folder is ".../Scripts/..." (and, Unix, "scripts" does not exist), the text field would display ".../Scripts/...". The main thing I am not sure about is how can you say "what is the path for this path"...Seems like a weird thing to do and not sure if it is supported. Some googling suggests it is, but as mentioned, I have no real experience.
I noticed there are different classes for Windows and Linux for the directory access, so maybe there could be a function in there to return the path? Unix would just return whatever path was passed in. Function could be called when directory exists.
from godot.
Related Issues (20)
- Reload dialog has opposite effect for project settings HOT 1
- C# export is broken on 4.3.beta1 HOT 9
- Viewport DEBUG_DRAW_UNSHADED wrong rendering with metallic materials HOT 2
- Previously freed objects shown as `<null>` in the debugger HOT 1
- Scroll wrap in 2D editor sometimes doesn't work HOT 3
- Console application print_rich() BBCODE color problems in windows 10 HOT 1
- Copied resources aren't duplicated anymore HOT 6
- To enable Wayland, fctix5 can't switch input method HOT 1
- NOTIFICATION_SORT_CHILDREN is being called twice on start for all Containers.
- Huge .tscn Icon and icon in background of File System panel
- some operations in subresource of inspector will cause unexpected scroll behavior HOT 1
- Vulkan: 3D editor grid renders incorrectly when using Lavapipe software rendering HOT 1
- Gridmap selection only follows world grid and not gridmap
- Minimum window width slightly too wide HOT 1
- Display turns completely black for a few seconds when gsync is enabled HOT 1
- ++Fortnite V Bucks Codes June-April 2024-2025 Unused Code List Unlimited free vbucks codes[Updated] HOT 2
- Regex fails to return an object under a certain condition HOT 1
- godot 4.3 beta 1 mobile is rendering inversely to the screen. HOT 9
- Can't drag and drop assign multiple Custom Resources in the editor the same way built-in resources can HOT 4
- [4.3 Beta 1] The command "Toggle FileSystem Bottom Panel" (Alf+F) doesn't work when the windows focus is on the script editor window HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godot.