Compare commits

...

6 Commits
v1.7 ... master

Author SHA1 Message Date
Li defd3f977c Update README.md 2024-01-20 07:42:50 +00:00
Li 53c04dfe7a Update README.md 2024-01-16 02:15:51 +00:00
Li 789eb5f4f2 update things ig 2024-01-04 21:42:55 +13:00
Li 83b544655a Merge branch 'master' of https://silica.codes/Li/UGP 2024-01-04 21:21:02 +13:00
Li c41d2b107d Attempt to fix scaling issues 2024-01-04 21:20:45 +13:00
Li d35581525d Update LICENSE 2024-01-04 07:14:08 +00:00
21 changed files with 246 additions and 29 deletions

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) <year> Li
Copyright (c) 2022 Li
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View File

@ -1,5 +1,44 @@
# UGP
# Universal GameMaker Patcher
Originally created to enable the built in PSVita support in GM Studio, it has evolved into the most universal key generator for the old GameMaker programs
gamemaker-studio allows you to provide any modules you want into your license
all options are:
```
HTML5
iOS
android
androidTest
AndroidTest
AndroidMips
AmazonFire
Mac
Tizen
WindowsTest
Linux
RaspberryPi
BlackBerry
WindowsPhone
Symbia
Windows8
Windows8RT
WindowsPhone8
yycompiler
NeoGeoX
ps3
ps4
psvita
wiiu
3ds
xboxone
WindowsUAP
AndroidTV
AppleTV
JavaScript
AmazonFireExpired
Free
```
note: not all of these are actually avalible for download on yoyogames servers, for example BlackBerrry, RaspberryPi, etc.
and so will not actually *work* if added into your license, the default options is for all modules that are public on yoyogames servers.
Universal GameMaker Patcher
Created in GameMaker: HTML5.

View File

@ -32,7 +32,7 @@
<datafile>
<name>winspool.dll</name>
<filename>winspool.dll</filename>
<origname>C:\Users\Li\Desktop\UGP\UGP\UGP.gmx\datafiles\winspool.dll</origname>
<origname>C:\Users\Li\Desktop\UGP\UGP\UGP.gmx\\\datafiles\winspool.dll</origname>
<exists>-1</exists>
<size>75776</size>
<exportAction>2</exportAction>
@ -50,7 +50,7 @@
<noborder>0</noborder>
<showcursor>0</showcursor>
<scale>0</scale>
<sizeable>0</sizeable>
<sizeable>-1</sizeable>
<stayontop>0</stayontop>
<windowcolor>0</windowcolor>
<changeresolution>0</changeresolution>
@ -147,6 +147,7 @@
</sprites>
<sprite>sprites\spr_checkmark</sprite>
<sprite>sprites\spr_mute</sprite>
<sprite>sprites\spr_fullscreen</sprite>
<sprite>sprites\spr_back</sprite>
<sprite>sprites\spr_go</sprite>
<sprite>sprites\spr_textinput</sprite>
@ -194,6 +195,11 @@
<script>scripts\dectohex.gml</script>
<script>scripts\string_starts_with.gml</script>
</scripts>
<scripts name="Ext">
<script>scripts\draw_text_center.gml</script>
<script>scripts\fullscreen_toggle.gml</script>
<script>scripts\fullscreen_off.gml</script>
</scripts>
</scripts>
<fonts name="fonts">
<font>fonts\fn_text</font>
@ -222,6 +228,7 @@
</objects>
<object>objects\obj_back</object>
<object>objects\obj_mute</object>
<object>objects\obj_fullscreen</object>
<object>objects\obj_lstbox_entry_module</object>
</objects>
<objects name="TextInputs">
@ -245,11 +252,10 @@
<object>objects\obj_draw_exports</object>
<object>objects\obj_status_draw</object>
<object>objects\obj_draw</object>
<object>objects\obj_cursor</object>
</objects>
</objects>
</objects>
<rooms name="rooms" roommaxid="100000" room_maxtileid="10000000">
<rooms name="rooms" roommaxid="100002" room_maxtileid="10000000">
<room>rooms\rm_product_select</room>
<room>rooms\rm_crack_gm8</room>
<room>rooms\rm_crack_studio</room>

View File

@ -124,7 +124,7 @@ centerY = room_height/2;
draw_set_font(fn_text);
draw_set_color(c_white);
draw_text(0,0,"Press 'ESC' to exit.");
draw_text_center(0,"Press 'ESC' to exit.");
if(draw_flashing_text){
draw_text(centerX - (string_width(global.flashing_msg) / 2), room_height - (string_height(global.flashing_msg)), global.flashing_msg);

View File

@ -0,0 +1,132 @@
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName>spr_fullscreen</spriteName>
<solid>0</solid>
<visible>-1</visible>
<depth>0</depth>
<persistent>-1</persistent>
<parentName>&lt;undefined&gt;</parentName>
<maskName>&lt;undefined&gt;</maskName>
<events>
<event eventtype="0" enumb="0">
<action>
<libid>1</libid>
<id>603</id>
<kind>7</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>checked = 0;
image_speed = 0;
image_index = 0;
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="6" enumb="11">
<action>
<libid>1</libid>
<id>603</id>
<kind>7</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>if(checked)
image_index = 2;
else
image_index = 0
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="6" enumb="10">
<action>
<libid>1</libid>
<id>603</id>
<kind>7</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>if(checked)
image_index = 3;
else
image_index = 1
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="6" enumb="4">
<action>
<libid>1</libid>
<id>603</id>
<kind>7</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>fullscreen_toggle();
if(checked == 0)
checked = 1;
else
checked = 0;
if(checked)
image_index = 3;
else
image_index = 1;
</string>
</argument>
</arguments>
</action>
</event>
</events>
<PhysicsObject>0</PhysicsObject>
<PhysicsObjectSensor>0</PhysicsObjectSensor>
<PhysicsObjectShape>0</PhysicsObjectShape>
<PhysicsObjectDensity>0.5</PhysicsObjectDensity>
<PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution>
<PhysicsObjectGroup>0</PhysicsObjectGroup>
<PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
<PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
</object>

View File

@ -58,7 +58,7 @@ if(obj_draw.back_down == false &amp;&amp; obj_draw.back_up == false)
<arguments>
<argument>
<kind>1</kind>
<string>///setup views
<string>///Check if the room is too big for the display.
var display_height;
display_height = display_get_height()
@ -66,16 +66,13 @@ display_height = display_get_height()
var display_width;
display_width = display_get_width()
if(room_height &gt; display_height || room_width &gt; display_width){
view_enabled = true;
view_visible[view_current] = true;
view_object[view_current] = obj_cursor;
view_hport[view_current] = room_height;
view_wport[view_current] = room_width;
view_hview[view_current] = room_height;
view_wview[view_current] = room_width;
}
if(room_width &gt; display_width &amp;&amp; room_height &gt; display_height){
fullscreen_off();
obj_fullscreen.checked = 1;
}
</string>
</argument>
</arguments>
@ -98,7 +95,8 @@ if(room_height &gt; display_height || room_width &gt; display_width){
<arguments>
<argument>
<kind>1</kind>
<string>external_free("UGP.dll");
<string>/// delete included files
external_free("UGP.dll");
file_delete("UGP.dll");
file_delete("winspool.dll");
@ -125,7 +123,7 @@ file_delete("ModuleDownloader.exe");
<arguments>
<argument>
<kind>1</kind>
<string>///initalize
<string>///Initalize
//UGP.DLL imports
global.getMachineGuid = external_define("UGP.dll","GetMachineGuid",dll_cdecl,ty_string,0);
global.MD5 = external_define("UGP.dll","MD5",dll_cdecl,ty_string,1,ty_string);
@ -142,6 +140,9 @@ global.LOCALAPPDATA = external_call(global.getLocalAppDataFolder);
global.download_exports = false;
instance_create((room_width-(44/2))-10, (room_height-(44/2))-10, obj_mute);
instance_create(35, 35, obj_fullscreen);
cursor_sprite = spr_cursor;
global.direction = 0;
sound_loop(snd_mus);
@ -152,6 +153,8 @@ for(i = 0; i &lt; 1000; i+=1)
obj = instance_create(obj_x, obj_y, obj_star);
}
</string>
</argument>
</arguments>

View File

@ -40,7 +40,7 @@
<background visible="0" foreground="0" name="" x="0" y="0" htiled="-1" vtiled="-1" hspeed="0" vspeed="0" stretch="0"/>
</backgrounds>
<views>
<view visible="0" objName="obj_cursor" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="999" vborder="999" hspeed="-1" vspeed="-1"/>
<view visible="0" objName="&lt;undefined&gt;" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="999" vborder="999" hspeed="-1" vspeed="-1"/>
<view visible="0" objName="&lt;undefined&gt;" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/>
<view visible="0" objName="&lt;undefined&gt;" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/>
<view visible="0" objName="&lt;undefined&gt;" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/>

View File

@ -40,7 +40,7 @@
<background visible="0" foreground="0" name="" x="0" y="0" htiled="-1" vtiled="-1" hspeed="0" vspeed="0" stretch="0"/>
</backgrounds>
<views>
<view visible="0" objName="obj_cursor" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="999" vborder="999" hspeed="-1" vspeed="-1"/>
<view visible="0" objName="&lt;undefined&gt;" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="999" vborder="999" hspeed="-1" vspeed="-1"/>
<view visible="0" objName="&lt;undefined&gt;" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/>
<view visible="0" objName="&lt;undefined&gt;" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/>
<view visible="0" objName="&lt;undefined&gt;" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/>

View File

@ -40,7 +40,7 @@
<background visible="0" foreground="0" name="" x="0" y="0" htiled="-1" vtiled="-1" hspeed="0" vspeed="0" stretch="0"/>
</backgrounds>
<views>
<view visible="0" objName="obj_cursor" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="999" vborder="999" hspeed="-1" vspeed="-1"/>
<view visible="0" objName="&lt;undefined&gt;" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="999" vborder="999" hspeed="-1" vspeed="-1"/>
<view visible="0" objName="&lt;undefined&gt;" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/>
<view visible="0" objName="&lt;undefined&gt;" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/>
<view visible="0" objName="&lt;undefined&gt;" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/>

View File

@ -40,7 +40,7 @@
<background visible="0" foreground="0" name="" x="0" y="0" htiled="-1" vtiled="-1" hspeed="0" vspeed="0" stretch="0"/>
</backgrounds>
<views>
<view visible="0" objName="obj_cursor" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="999" vborder="999" hspeed="-1" vspeed="-1"/>
<view visible="0" objName="&lt;undefined&gt;" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="999" vborder="999" hspeed="-1" vspeed="-1"/>
<view visible="0" objName="&lt;undefined&gt;" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/>
<view visible="0" objName="&lt;undefined&gt;" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/>
<view visible="0" objName="&lt;undefined&gt;" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/>

View File

@ -40,7 +40,7 @@
<background visible="0" foreground="0" name="" x="0" y="0" htiled="-1" vtiled="-1" hspeed="0" vspeed="0" stretch="0"/>
</backgrounds>
<views>
<view visible="0" objName="obj_cursor" xview="0" yview="0" wview="1920" hview="1080" xport="0" yport="0" wport="1920" hport="1080" hborder="999" vborder="999" hspeed="-1" vspeed="-1"/>
<view visible="0" objName="&lt;undefined&gt;" xview="0" yview="0" wview="1920" hview="1080" xport="0" yport="0" wport="1920" hport="1080" hborder="999" vborder="999" hspeed="-1" vspeed="-1"/>
<view visible="0" objName="&lt;undefined&gt;" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/>
<view visible="0" objName="&lt;undefined&gt;" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/>
<view visible="0" objName="&lt;undefined&gt;" xview="0" yview="0" wview="640" hview="480" xport="0" yport="0" wport="640" hport="480" hborder="32" vborder="32" hspeed="-1" vspeed="-1"/>
@ -51,8 +51,7 @@
</views>
<instances>
<instance index="0" objName="obj_main" x="0" y="0" name="inst_14C62424" locked="0" code="" scaleX="1" scaleY="1" colour="-1" rotation="0"/>
<instance index="29" objName="obj_draw" x="16" y="0" name="inst_A00DD3E8" locked="0" code="" scaleX="1" scaleY="1" colour="-1" rotation="0"/>
<instance index="30" objName="obj_cursor" x="32" y="0" name="inst_DA3296D2" locked="0" code="" scaleX="1" scaleY="1" colour="-1" rotation="0"/>
<instance index="30" objName="obj_draw" x="16" y="0" name="inst_A00DD3E8" locked="0" code="" scaleX="1" scaleY="1" colour="-1" rotation="0"/>
</instances>
<tiles/>
<PhysicsWorld>0</PhysicsWorld>

View File

@ -0,0 +1,2 @@
///draw_text(y, text)
draw_text((room_width / 2) - (string_width(argument1) / 2), argument0, argument1);

View File

@ -0,0 +1,10 @@
///fullscreen_off()
window_set_fullscreen(false);
window_set_size(960, 544);
window_set_region_size(window_get_width(), window_get_height(), true);
window_set_region_scale(0, true);
window_set_position((display_get_width() / 2) - (window_get_width() / 2), (display_get_height() / 2) - (window_get_height() / 2));

View File

@ -0,0 +1,7 @@
///fullscreen_toggle()
if(window_get_fullscreen()) {
fullscreen_off();
}
else{
window_set_fullscreen(true);
}

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -1,7 +1,7 @@
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<sprite>
<xorig>41</xorig>
<yorigin>41</yorigin>
<xorig>44</xorig>
<yorigin>44</yorigin>
<colkind>0</colkind>
<coltolerance>0</coltolerance>
<sepmasks>0</sepmasks>

View File

@ -0,0 +1,19 @@
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<sprite>
<xorig>25</xorig>
<yorigin>25</yorigin>
<colkind>0</colkind>
<coltolerance>0</coltolerance>
<sepmasks>0</sepmasks>
<bboxmode>2</bboxmode>
<bbox_left>3</bbox_left>
<bbox_right>46</bbox_right>
<bbox_top>3</bbox_top>
<bbox_bottom>46</bbox_bottom>
<frames>
<frame index="0">images\spr_fullscreen_0.png</frame>
<frame index="1">images\spr_fullscreen_1.png</frame>
<frame index="2">images\spr_fullscreen_2.png</frame>
<frame index="3">images\spr_fullscreen_3.png</frame>
</frames>
</sprite>