Having to choose between uploading my game and then launching it online with next-to-zero debugging tools or running a NetworkServer which breaks RenderStepped and spams my output just to execute http requests is beyond dumb. Preferably I wouldn’t even have to do anything to enable this.
EDIT: Creating a NetworkServer in play solo completely breaks everything.
it’s as “inconvenient” as game:SetPlaceId(999999) for testing DataStores [/quote]
You have to do it each time you want to test and it takes many times longer to start a server+client than to start a play solo. Also I’m not sure why you’re setting the placeId when you could just publish.
ah i see the problem, you’re misinformed, i’ll help you out
when testing datastores:
open place locally from my computer files
game:SetPlaceId(4008009) in command bar
f7, then click window to regain focus, then alt+f7 (takes literally 2000 milliseconds to do this. not ‘many times longer’ than solo) (Also, if you have no need for a player and just want to use httpservice, skip the alt+f7 then you save even more time)
or you can press “Edit” on the site to open the place and it performs the SetPlaceId command automatically, but I don’t do this because I don’t want to waste bandwidth by redownloading my place i already have.
As for insert service → httpservice, and checking HttpEnabled true, you really only need to do this once. It sticks when you save, close, and reload, so you never have to do it again. Try it out!
Edit: I know this wasn’t in your original post, but I’m steering this back to a suggestion - new title: “Need a way to execute http requests from studio edit mode (non-solo and non-start server)”
Mael - Not sure why you’re talking about insert service and datastores. This thread is about http requests which can’t be performed unless a NetworkServer exists. NetworkServers can only be started through one of these methods:
Start server (takes much longer to start up than play solo)
Creating a NetworkServer (kills all sorts of things like CoreGuis and RenderStepped)
I’m requesting that http requests be enabled in edit and play solo without requiring a NetworkServer, just like how datastores are enabled in edit and play solo.
datastores was mentioned on the side because i said it was even less “inconvenient” as you put it. it is not the main point of my other post, and I expanded upon it because of what you said, “I’m not sure why you’re setting the placeId when you could just publish.”
again, Start server does not “takes much longer” to start up than play solo, it takes literally a second to press f7 and optionally alt+f7, I went over this with echoreaper a while ago.
ah, less confusion would be if you originally said you wanted it to be enabled in edit and play solo. I eventually extrapolated from your posts and I even posed an alternative title “Need a way to execute http requests from studio edit mode (non-solo and non-start server)” good to see my post was on the same page as your original unwritten thoughts - and I support that!
Time taken to start in-window play solo: 2 seconds
Time taken to start start-server (with no player): 11 seconds
Starting a server does take much longer than play solo > 5x longer.
Also, DataStoreService works in Play Solo now assuming that “Enable studio access to APIs” or whatever it’s called is enabled in the game’s settings.
" i didn’t mention insert service anywhere"
but you did
I don’t think you meant to say insert service and instead meant to say “As for enabling HTTPService, insert > service > HTTPService”, but Ethan probably didn’t take that into consideration and thought you were talking about InsertService + unless they used SystemMenu recently a person wouldn’t remember that Insert>Service is how to insert a service in SystemMenu (It’s different in RB).
As far as I was aware in-window play solo completely replaces play solo as there’s no reason to use play solo in a new window. I’ve always referred to in-window play solo as “Play Solo” and I I just checked with Ethan as well – he uses in-window Play Solo too. Why would you compare the older method instead of the newer one?
[Default] Edit mode
F5 - [strike]run[/strike] play
Blank green triangle - run
F6 - play solo
F7 - start server
Alt + F7 - start player
They all have their official labels. Do not confuse them
Also run mode does not completely replace play solo but is rather a helpful addition when testing some stuff. Often times something crashes studio - a mere infinitely recursive loop, or one of the more common studio crashes such as ribbon bar’s hidden dock mode or intellisense. It’s nice to have a separate ‘sandboxed’ window sometimes in case of those events.
I’m sure you can see why we don’t call it “Play” though. “I went into Play mode and I couldn’t access httpservice” “But HttpService should work in online mode!” “No no I meant in-window, studio play mode” Regardless, “Play Solo” is pointless and has been replaced by “Play” (In-window play solo). Not sure why you’d even bother taking into account the older method.
Ethan flat out said studio can’t use httpservice in studio. I had to correct his wording because you can, with Start server.
Besides the confusing terminology, Play mode and Play solo both don’t have httpservice access, which we found out is what ethan wanted 8 posts in (I guessed this much in the 6th post.) Confusion solved