diff --git a/NovetusLauncher/NovetusLauncher/ItemMaker.Designer.cs b/NovetusLauncher/NovetusLauncher/ItemMaker.Designer.cs index a6778d0..768ef3b 100644 --- a/NovetusLauncher/NovetusLauncher/ItemMaker.Designer.cs +++ b/NovetusLauncher/NovetusLauncher/ItemMaker.Designer.cs @@ -37,31 +37,20 @@ namespace NovetusLauncher private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ItemMaker)); - this.textBox1 = new System.Windows.Forms.TextBox(); this.button1 = new System.Windows.Forms.Button(); this.textBox2 = new System.Windows.Forms.TextBox(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); - this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.comboBox1 = new System.Windows.Forms.ComboBox(); - this.comboBox2 = new System.Windows.Forms.ComboBox(); - this.label4 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); this.SuspendLayout(); // - // textBox1 - // - this.textBox1.Location = new System.Drawing.Point(3, 27); - this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(229, 20); - this.textBox1.TabIndex = 0; - // // button1 // - this.button1.Location = new System.Drawing.Point(3, 120); + this.button1.Location = new System.Drawing.Point(3, 80); this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(229, 23); + this.button1.Size = new System.Drawing.Size(238, 23); this.button1.TabIndex = 1; this.button1.Text = "Create!"; this.button1.UseVisualStyleBackColor = true; @@ -69,34 +58,26 @@ namespace NovetusLauncher // // textBox2 // - this.textBox2.Location = new System.Drawing.Point(3, 67); + this.textBox2.Location = new System.Drawing.Point(46, 27); this.textBox2.Name = "textBox2"; - this.textBox2.Size = new System.Drawing.Size(85, 20); + this.textBox2.Size = new System.Drawing.Size(76, 20); this.textBox2.TabIndex = 2; // // numericUpDown1 // - this.numericUpDown1.Location = new System.Drawing.Point(97, 66); + this.numericUpDown1.Location = new System.Drawing.Point(161, 27); this.numericUpDown1.Maximum = new decimal(new int[] { - 3, - 0, - 0, - 0}); + 3, + 0, + 0, + 0}); this.numericUpDown1.Name = "numericUpDown1"; - this.numericUpDown1.Size = new System.Drawing.Size(39, 20); + this.numericUpDown1.Size = new System.Drawing.Size(36, 20); this.numericUpDown1.TabIndex = 3; // - // label1 - // - this.label1.Location = new System.Drawing.Point(59, 10); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(121, 14); - this.label1.TabIndex = 5; - this.label1.Text = "Item Name (No Spaces)"; - // // label2 // - this.label2.Location = new System.Drawing.Point(21, 50); + this.label2.Location = new System.Drawing.Point(63, 10); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(46, 14); this.label2.TabIndex = 6; @@ -104,7 +85,7 @@ namespace NovetusLauncher // // label3 // - this.label3.Location = new System.Drawing.Point(94, 50); + this.label3.Location = new System.Drawing.Point(161, 9); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(42, 14); this.label3.TabIndex = 7; @@ -116,54 +97,26 @@ namespace NovetusLauncher this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.FormattingEnabled = true; this.comboBox1.Items.AddRange(new object[] { - "http://www.roblox.com/", - "http://assetgame.roblox.com/"}); - this.comboBox1.Location = new System.Drawing.Point(3, 93); + "http://www.roblox.com/", + "http://assetgame.roblox.com/"}); + this.comboBox1.Location = new System.Drawing.Point(3, 53); this.comboBox1.Name = "comboBox1"; - this.comboBox1.Size = new System.Drawing.Size(229, 21); + this.comboBox1.Size = new System.Drawing.Size(238, 21); this.comboBox1.TabIndex = 8; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.ComboBox1SelectedIndexChanged); // - // comboBox2 - // - this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.comboBox2.FormattingEnabled = true; - this.comboBox2.Items.AddRange(new object[] { - "Item (.rbxm)", - "Texture (.png)", - "Mesh (.mesh)", - "Sound (.wav)"}); - this.comboBox2.Location = new System.Drawing.Point(142, 65); - this.comboBox2.Name = "comboBox2"; - this.comboBox2.Size = new System.Drawing.Size(90, 21); - this.comboBox2.TabIndex = 9; - this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.ComboBox2SelectedIndexChanged); - // - // label4 - // - this.label4.Location = new System.Drawing.Point(142, 50); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(90, 14); - this.label4.TabIndex = 10; - this.label4.Text = "Type"; - this.label4.TextAlign = System.Drawing.ContentAlignment.TopCenter; - // // ItemMaker // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.ClientSize = new System.Drawing.Size(236, 152); - this.Controls.Add(this.label4); - this.Controls.Add(this.comboBox2); + this.ClientSize = new System.Drawing.Size(244, 114); this.Controls.Add(this.comboBox1); this.Controls.Add(this.label3); this.Controls.Add(this.label2); - this.Controls.Add(this.label1); this.Controls.Add(this.numericUpDown1); this.Controls.Add(this.textBox2); this.Controls.Add(this.button1); - this.Controls.Add(this.textBox1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; @@ -173,16 +126,13 @@ namespace NovetusLauncher ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); + } - private System.Windows.Forms.Label label4; - private System.Windows.Forms.ComboBox comboBox2; private System.Windows.Forms.ComboBox comboBox1; private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label1; private System.Windows.Forms.NumericUpDown numericUpDown1; private System.Windows.Forms.TextBox textBox2; - private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.Button button1; } } diff --git a/NovetusLauncher/NovetusLauncher/ItemMaker.cs b/NovetusLauncher/NovetusLauncher/ItemMaker.cs index eeef097..efa981b 100644 --- a/NovetusLauncher/NovetusLauncher/ItemMaker.cs +++ b/NovetusLauncher/NovetusLauncher/ItemMaker.cs @@ -23,7 +23,6 @@ namespace NovetusLauncher public partial class ItemMaker : Form { private static string url = "http://www.roblox.com/asset?id="; - private static string type = ".rbxm"; public ItemMaker() { @@ -43,14 +42,9 @@ namespace NovetusLauncher { string version = (numericUpDown1.Value != 0) ? "&version=" + numericUpDown1.Value : ""; - using (WebClient wc = new WebClient()) - { - var ua = "Roblox/WinInet"; - wc.Headers.Add(HttpRequestHeader.UserAgent, ua); - wc.DownloadFileAsync(new System.Uri(url + textBox2.Text + version), GlobalVars.BasePath + "\\" + textBox1.Text + type); - } + System.Diagnostics.Process.Start(url + textBox2.Text + version); - MessageBox.Show("Item downloaded into your Novetus directory! In order for the item to work in Novetus, you'll need to find an icon for your item (it must be a .png file), then name it the same name as your item.\n\nIf you want to create a local (offline) item, you'll have to download the meshes/textures from the links in the rbxm file, then replace the links in the file pointing to where they are using rbxasset://. Look at the directory in the 'shareddata/charcustom' folder that best suits your item type, then look at the rbxm for any one of the items. If you get a corrupted file, change the URL using the drop down box.","Novetus Item SDK", MessageBoxButtons.OK, MessageBoxIcon.Information); + MessageBox.Show("In order for the item to work in Novetus, you'll need to find an icon for your item (it must be a .png file), then name it the same name as your item.\n\nIf you want to create a local (offline) item, you'll have to download the meshes/textures from the links in the rbxm file, then replace the links in the file pointing to where they are using rbxasset://. Look at the directory in the 'shareddata/charcustom' folder that best suits your item type, then look at the rbxm for any one of the items. If you get a corrupted file, change the URL using the drop down box.\n\nIf you're trying to create a offline item. please use these file extension names when saving your files:\n.rbxm - ROBLOX Model/Item\n.mesh - ROBLOX Mesh\n.png - Texture/Icon\n.wav - Sound","Novetus Item SDK", MessageBoxButtons.OK, MessageBoxIcon.Information); } catch(Exception) { @@ -72,28 +66,7 @@ namespace NovetusLauncher void ItemMakerLoad(object sender, EventArgs e) { - comboBox1.Text = "http://www.roblox.com/"; - comboBox2.Text = "Item (.rbxm)"; - } - - void ComboBox2SelectedIndexChanged(object sender, EventArgs e) - { - if (comboBox2.SelectedIndex == 0) - { - type = ".rbxm"; - } - else if (comboBox2.SelectedIndex == 1) - { - type = ".png"; - } - else if (comboBox2.SelectedIndex == 2) - { - type = ".mesh"; - } - else if (comboBox2.SelectedIndex == 3) - { - type = ".wav"; - } + comboBox1.Text = "http://www.roblox.com/"; } } } diff --git a/NovetusLauncher/packages/ProFileDownloader.4.0.0/ProFileDownloader.4.0.0.nupkg b/NovetusLauncher/packages/ProFileDownloader.4.0.0/ProFileDownloader.4.0.0.nupkg new file mode 100644 index 0000000..c815ed5 Binary files /dev/null and b/NovetusLauncher/packages/ProFileDownloader.4.0.0/ProFileDownloader.4.0.0.nupkg differ diff --git a/NovetusLauncher/packages/ProFileDownloader.4.0.0/lib/netcoreapp2.1/ProFileDownloader.xml b/NovetusLauncher/packages/ProFileDownloader.4.0.0/lib/netcoreapp2.1/ProFileDownloader.xml new file mode 100644 index 0000000..1ec4287 --- /dev/null +++ b/NovetusLauncher/packages/ProFileDownloader.4.0.0/lib/netcoreapp2.1/ProFileDownloader.xml @@ -0,0 +1,112 @@ + + + + ProFileDownloader + + + + + A class which represents a file downloader + + + + + Giving a name to overwrite the remote suggested file name. + + + + + Initialize the downloader. + + Url of the remote file. + Where the local file should be saved at. + + + + Giving you a readable format for the remote file size. + + + + + Loads the downloader with the required information about the remote file. + + + + + + Indicates if the remote server supports the file segmentation or not + + + + + Indicates if the remote server supports the file resuming or not + + + + + Updates the downloader with the new changes that happened to the remote file, to match the least changes to be able to resume downloading the file. + + + Updates the remote file properties. + + + + + Download the remote file. + + Gets the current downloading process + A token to cancel the downloading process if you want. + + + + + A class which represents segments downloader + + + + + Initialize the segment downloader. + + Url of the remote file. + Where the local file should be saved at. + + + + Load the segments of the remote file. + + List of segments are stored + + + + Gets the segments basic data, to be stored on your own, for later resuming needs. + + Json Content, which is need to be stored in somewhere on your own. + + + + Load the Segments data from the JsonContent + + Json Content, which you got from the + reloaded segments to be able to resumed + + + + Start downloading the segments + + Gets the current downloading process + A token to cancel the downloading process if you want. + + + + + Reconstract the segments from the temp files that got created. + + A complete file in the directory that you specified in the constructor. + + + + Provides Utility Methods for dealing with files. + + + +