[hlcoders] Running programs on a mod startup?
-- [ Picked text/plain from multipart/alternative ] How would I go about loading a program on mod startup? I currently have looked at CHLClient::Init() and used this piece of code at the bottom of the function. vgui::system()-ShellExecute(open, modchecker.exe); modchecker.exe is in the mod bin folder. Any ideas would be appreciated. -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] Running programs on a mod startup?
I don't know why you would need this but I would assume the ShellExecute is relative to the hl2.exe, so try bin/modchecker.exe Benjamin Davison wrote: -- [ Picked text/plain from multipart/alternative ] How would I go about loading a program on mod startup? I currently have looked at CHLClient::Init() and used this piece of code at the bottom of the function. vgui::system()-ShellExecute(open, modchecker.exe); modchecker.exe is in the mod bin folder. Any ideas would be appreciated. -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] Running programs on a mod startup?
-- [ Picked text/plain from multipart/alternative ] That works thanks, how would I keep it relative to the mod bin folder? On 6/28/07, Stephen Swires [EMAIL PROTECTED] wrote: I don't know why you would need this but I would assume the ShellExecute is relative to the hl2.exe, so try bin/modchecker.exe Benjamin Davison wrote: -- [ Picked text/plain from multipart/alternative ] How would I go about loading a program on mod startup? I currently have looked at CHLClient::Init() and used this piece of code at the bottom of the function. vgui::system()-ShellExecute(open, modchecker.exe); modchecker.exe is in the mod bin folder. Any ideas would be appreciated. -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] Running programs on a mod startup?
There's a function on the filesystem called RelativeToLocal.. that should work. garry On 6/28/07, Benjamin Davison [EMAIL PROTECTED] wrote: -- [ Picked text/plain from multipart/alternative ] That works thanks, how would I keep it relative to the mod bin folder? On 6/28/07, Stephen Swires [EMAIL PROTECTED] wrote: I don't know why you would need this but I would assume the ShellExecute is relative to the hl2.exe, so try bin/modchecker.exe Benjamin Davison wrote: -- [ Picked text/plain from multipart/alternative ] How would I go about loading a program on mod startup? I currently have looked at CHLClient::Init() and used this piece of code at the bottom of the function. vgui::system()-ShellExecute(open, modchecker.exe); modchecker.exe is in the mod bin folder. Any ideas would be appreciated. -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] Running programs on a mod startup?
-- [ Picked text/plain from multipart/alternative ] Cant seem to find it, not in filesystem.h I also had a look for anything similar sounding and turned up nothing. On 6/28/07, Garry Newman [EMAIL PROTECTED] wrote: There's a function on the filesystem called RelativeToLocal.. that should work. garry On 6/28/07, Benjamin Davison [EMAIL PROTECTED] wrote: -- [ Picked text/plain from multipart/alternative ] That works thanks, how would I keep it relative to the mod bin folder? On 6/28/07, Stephen Swires [EMAIL PROTECTED] wrote: I don't know why you would need this but I would assume the ShellExecute is relative to the hl2.exe, so try bin/modchecker.exe Benjamin Davison wrote: -- [ Picked text/plain from multipart/alternative ] How would I go about loading a program on mod startup? I currently have looked at CHLClient::Init() and used this piece of code at the bottom of the function. vgui::system()-ShellExecute(open, modchecker.exe); modchecker.exe is in the mod bin folder. Any ideas would be appreciated. -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] Running programs on a mod startup?
-- [ Picked text/plain from multipart/alternative ] Did some searching and found IFileSystem::RelativePathToFullPath Works a treat, thanks guys. On 6/28/07, Benjamin Davison [EMAIL PROTECTED] wrote: Cant seem to find it, not in filesystem.h I also had a look for anything similar sounding and turned up nothing. On 6/28/07, Garry Newman [EMAIL PROTECTED] wrote: There's a function on the filesystem called RelativeToLocal.. that should work. garry On 6/28/07, Benjamin Davison [EMAIL PROTECTED] wrote: -- [ Picked text/plain from multipart/alternative ] That works thanks, how would I keep it relative to the mod bin folder? On 6/28/07, Stephen Swires [EMAIL PROTECTED] wrote: I don't know why you would need this but I would assume the ShellExecute is relative to the hl2.exe, so try bin/modchecker.exe Benjamin Davison wrote: -- [ Picked text/plain from multipart/alternative ] How would I go about loading a program on mod startup? I currently have looked at CHLClient::Init() and used this piece of code at the bottom of the function. vgui::system()-ShellExecute(open, modchecker.exe); modchecker.exe is in the mod bin folder. Any ideas would be appreciated. -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- - Benjamin Davison -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] Running programs on a mod startup?
-- [ Picked text/plain from multipart/alternative ] Use windows API. On 6/28/07, Benjamin Davison [EMAIL PROTECTED] wrote: -- [ Picked text/plain from multipart/alternative ] Did some searching and found IFileSystem::RelativePathToFullPath Works a treat, thanks guys. On 6/28/07, Benjamin Davison [EMAIL PROTECTED] wrote: Cant seem to find it, not in filesystem.h I also had a look for anything similar sounding and turned up nothing. On 6/28/07, Garry Newman [EMAIL PROTECTED] wrote: There's a function on the filesystem called RelativeToLocal.. that should work. garry On 6/28/07, Benjamin Davison [EMAIL PROTECTED] wrote: -- [ Picked text/plain from multipart/alternative ] That works thanks, how would I keep it relative to the mod bin folder? On 6/28/07, Stephen Swires [EMAIL PROTECTED] wrote: I don't know why you would need this but I would assume the ShellExecute is relative to the hl2.exe, so try bin/modchecker.exe Benjamin Davison wrote: -- [ Picked text/plain from multipart/alternative ] How would I go about loading a program on mod startup? I currently have looked at CHLClient::Init() and used this piece of code at the bottom of the function. vgui::system()-ShellExecute(open, modchecker.exe); modchecker.exe is in the mod bin folder. Any ideas would be appreciated. -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- - Benjamin Davison -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] Running programs on a mod startup?
Won't work, some people use linux dedicated servers... Louka Outrebon wrote: -- [ Picked text/plain from multipart/alternative ] Use windows API. On 6/28/07, Benjamin Davison [EMAIL PROTECTED] wrote: -- [ Picked text/plain from multipart/alternative ] Did some searching and found IFileSystem::RelativePathToFullPath Works a treat, thanks guys. On 6/28/07, Benjamin Davison [EMAIL PROTECTED] wrote: Cant seem to find it, not in filesystem.h I also had a look for anything similar sounding and turned up nothing. On 6/28/07, Garry Newman [EMAIL PROTECTED] wrote: There's a function on the filesystem called RelativeToLocal.. that should work. garry On 6/28/07, Benjamin Davison [EMAIL PROTECTED] wrote: -- [ Picked text/plain from multipart/alternative ] That works thanks, how would I keep it relative to the mod bin folder? On 6/28/07, Stephen Swires [EMAIL PROTECTED] wrote: I don't know why you would need this but I would assume the ShellExecute is relative to the hl2.exe, so try bin/modchecker.exe Benjamin Davison wrote: -- [ Picked text/plain from multipart/alternative ] How would I go about loading a program on mod startup? I currently have looked at CHLClient::Init() and used this piece of code at the bottom of the function. vgui::system()-ShellExecute(open, modchecker.exe); modchecker.exe is in the mod bin folder. Any ideas would be appreciated. -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- - Benjamin Davison -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] Running programs on a mod startup?
-- [ Picked text/plain from multipart/alternative ] Right, but that's clearly for clients. clients are windows. On 6/28/07, Tom Leighton [EMAIL PROTECTED] wrote: Won't work, some people use linux dedicated servers... Louka Outrebon wrote: -- [ Picked text/plain from multipart/alternative ] Use windows API. On 6/28/07, Benjamin Davison [EMAIL PROTECTED] wrote: -- [ Picked text/plain from multipart/alternative ] Did some searching and found IFileSystem::RelativePathToFullPath Works a treat, thanks guys. On 6/28/07, Benjamin Davison [EMAIL PROTECTED] wrote: Cant seem to find it, not in filesystem.h I also had a look for anything similar sounding and turned up nothing. On 6/28/07, Garry Newman [EMAIL PROTECTED] wrote: There's a function on the filesystem called RelativeToLocal.. that should work. garry On 6/28/07, Benjamin Davison [EMAIL PROTECTED] wrote: -- [ Picked text/plain from multipart/alternative ] That works thanks, how would I keep it relative to the mod bin folder? On 6/28/07, Stephen Swires [EMAIL PROTECTED] wrote: I don't know why you would need this but I would assume the ShellExecute is relative to the hl2.exe, so try bin/modchecker.exe Benjamin Davison wrote: -- [ Picked text/plain from multipart/alternative ] How would I go about loading a program on mod startup? I currently have looked at CHLClient::Init() and used this piece of code at the bottom of the function. vgui::system()-ShellExecute(open, modchecker.exe); modchecker.exe is in the mod bin folder. Any ideas would be appreciated. -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- - Benjamin Davison -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- -omega -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] Running programs on a mod startup?
-- [ Picked text/plain from multipart/alternative ] ShellExecute is just a different implementation of a windows API call anyway :) All the problem was just getting the location of the .exe as it was looking in the sdk base directory and not the mod :) Problem solved :D On 6/28/07, Tony omega Sergi [EMAIL PROTECTED] wrote: -- [ Picked text/plain from multipart/alternative ] Right, but that's clearly for clients. clients are windows. On 6/28/07, Tom Leighton [EMAIL PROTECTED] wrote: Won't work, some people use linux dedicated servers... Louka Outrebon wrote: -- [ Picked text/plain from multipart/alternative ] Use windows API. On 6/28/07, Benjamin Davison [EMAIL PROTECTED] wrote: -- [ Picked text/plain from multipart/alternative ] Did some searching and found IFileSystem::RelativePathToFullPath Works a treat, thanks guys. On 6/28/07, Benjamin Davison [EMAIL PROTECTED] wrote: Cant seem to find it, not in filesystem.h I also had a look for anything similar sounding and turned up nothing. On 6/28/07, Garry Newman [EMAIL PROTECTED] wrote: There's a function on the filesystem called RelativeToLocal.. that should work. garry On 6/28/07, Benjamin Davison [EMAIL PROTECTED] wrote: -- [ Picked text/plain from multipart/alternative ] That works thanks, how would I keep it relative to the mod bin folder? On 6/28/07, Stephen Swires [EMAIL PROTECTED] wrote: I don't know why you would need this but I would assume the ShellExecute is relative to the hl2.exe, so try bin/modchecker.exe Benjamin Davison wrote: -- [ Picked text/plain from multipart/alternative ] How would I go about loading a program on mod startup? I currently have looked at CHLClient::Init() and used this piece of code at the bottom of the function. vgui::system()-ShellExecute(open, modchecker.exe); modchecker.exe is in the mod bin folder. Any ideas would be appreciated. -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- - Benjamin Davison -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- -omega -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- - Benjamin Davison -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders