Skip to content

Commit

Permalink
/ ‘README.md’
Browse files Browse the repository at this point in the history
+ ‘game/EE_config.rpy’
/ ‘game/Event Editor/EE_auto_res.rpy’
/ ‘game/Event Editor/EE_main.rpy’
/ ‘game/Event Editor/base_speakers.rpy’
/ ‘game/Event Editor/images.rpy’
/ ‘game/Event Editor/mods.rpy’
+ ‘game/events/EEout_main_start.rpy’
+ ‘game/events/EEout_main_test.rpy’
/ ‘game/main_menu.rpy’
/ ‘game/mods/test/events/EEout_test_two.rpy’
/ ‘game/mods/test/mod.conf.rpy’
+ ‘launcherinfo.py’
  • Loading branch information
Jeremi360 committed Jul 28, 2016
1 parent 95ce3a2 commit ee2ca3a
Show file tree
Hide file tree
Showing 13 changed files with 133 additions and 36 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,29 @@ Ren'Py Event Editor forked from this: [Ren'Py Event Editor forum topic](http://l
## Features:
- Support for mods / custom scenarios - see files in *mods/test*
- You can test your events from menu
- All generated events have *EEout_* prefix
- All generated events have *EEout_* prefix:
- Events from main plot have *EEout_main_* prefix
- Events from mods have *EEout_mod_name_* prefix

- Genterate buttons for all spekers added to speakers list:

```
$ speakers.append(mycharacter)
$ speakers["my_character_name_in_code"] = my_character_name_in_code
```

- Easy add custom images folders:

```
init -30 python:
addBGs('my_custom_bgs', 'my_bg_prefix') #you don't have to write prefix
addEVs('my_custom_ev', 'my_ev_prefix')
addBGs('my_custom_bgs', 'my_bg_prefix') #default prefix is 'bg'
addEVs('my_custom_ev', 'my_ev_prefix') #default prefix is 'event'
addChs('my_custom_ch')
```

## Changes:
- Start develop support for [DSE(Dating Sim Engine)](https://github.com/renpy/dse)
- Add *EE_config.rpy* to show default Event Editor configuration
- Change way of adding new speakers to fix bug
- Add test mod
- Fix indentation on speakers lines again
- Add Support for mods
Expand Down
14 changes: 14 additions & 0 deletions game/EE_config.rpy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
init -200 python:
# here you can config Event Editor to your game
# default images config
addBGs('images/bgs')
addEVs('images/events')
addChs('images/characters')

# example of adding character(EE speaker):
somebody = Character("Somebody")
speakers["somebody"] = somebody

# enable/disable DSE(Dating Sim Engine) support in Event Editor
# this is alpha don't work now do set to True
EE__DSEmodule_active = False
20 changes: 17 additions & 3 deletions game/Event Editor/EE_auto_res.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,22 @@ screen speaker_selection:

textbutton _("None") action SetVariable('speaker_temp',"") xminimum 200

for speaker in speakers:
$n = speaker.name
$call_speaker = n.lower().split()[0]
for s in speakers.items():

if s[1].name == None:
$n = s[0].title()

else:
$n = s[1].name

$call_speaker = s[0]

textbutton _(n) action SetVariable('speaker_temp', call_speaker) xminimum 200

textbutton _("WRITE NEW") action ui.callsinnewcontext('insert_speaker_manually') xminimum 200
textbutton _("DONE") yalign 0.3 xalign 1.0 action Hide('speaker_selection') xminimum 200


screen BG_selection:
zorder 1
tag sc
Expand All @@ -52,20 +59,24 @@ screen BG_selection:
textbutton _("DONE") yalign 0.3 xalign 1.0 action Hide('BG_selection') xminimum 200
vbar value YScrollValue("bg_sel")


screen character_selection:
zorder 1
tag sc

textbutton _("DONE") yalign 0.5 xalign 0.95 action Hide('character_selection') xminimum 150

vbox:
yalign 0.15
xfill True

hbox:
xfill True
textbutton ("Char 1") action SetVariable('char_nu_temp',0) xminimum 150
textbutton ("Char 2") action SetVariable('char_nu_temp',1) xminimum 150
textbutton ("Char 3") action SetVariable('char_nu_temp',2) xminimum 150
null height 10

showif char_nu_temp == 0:
hbox:
xfill True
Expand All @@ -81,6 +92,7 @@ screen character_selection:
textbutton ("0.9") action SetVariable('position_temp_char0',0.9)
textbutton ("right") action SetVariable('position_temp_char0',1.0)
bar value VariableValue('position_temp_char0',1.6,offset=-0.3)

elif char_nu_temp == 1:
hbox:
xfill True
Expand All @@ -96,6 +108,7 @@ screen character_selection:
textbutton ("0.9") action SetVariable('position_temp_char1',0.9)
textbutton ("right") action SetVariable('position_temp_char1',1.0)
bar value VariableValue('position_temp_char1',1.6,offset=-0.3)

elif char_nu_temp == 2:
hbox:
xfill True
Expand Down Expand Up @@ -151,6 +164,7 @@ screen EV_bg_selection:
textbutton _("DONE") yalign 0.3 xalign 1.0 action Hide('EV_bg_selection')
vbar value YScrollValue("ev_bg_sel")


screen BG_base_selection:
zorder 1
tag sc
Expand Down
25 changes: 23 additions & 2 deletions game/Event Editor/EE_main.rpy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#######VERSION: 2.4
#######VERSION: 2.6
#
#DON'T TOUCH:
#Code needed to capture the input text everytime the page changes.
Expand Down Expand Up @@ -148,7 +148,7 @@ label new_project:
"New Project For:"

"Main Game Plot":
pass
$_modn = "main_"

"Mod":
$modname = renpy.input("Write a name of mod","mod")
Expand Down Expand Up @@ -298,12 +298,32 @@ label exporting_project:
python:
expath = "events/"


if modname != "":
expath = "mods/" + modname + "/" + expath

target = renpy.loader.transfn(expath)
target = open(target + project_name + ".rpy",'w+')


if EE__DSEmodule_active:
target.write("init:\n ")
target.write("$ event('"+project_name+"'")

if EE__DSE_once == 1:
target.write(",event.once()")

if EE__DSE_group != 0:
target.write(",event.choose_one(\""+EE__DSE_group+"\")")

target.write(",'act == \""+EE__DSE_group+"\"'")

for ii in EE__conditions_used_list:
target.write(",'"+ii.condition_property.variable_name+ii.operator+ii.variable_value+"'")

target.write(")")
target.write("\n\n\n")

ind=''
n_ind=1
ind=indentation(n_ind)
Expand All @@ -323,6 +343,7 @@ label exporting_project:


init python:

def export_scene(minievent_temp,ind):
for xx in range(1,minievent_temp.totalpages+1):
if minievent_temp.BG[xx-1]!=minievent_temp.BG[xx]:
Expand Down
21 changes: 14 additions & 7 deletions game/Event Editor/base_speakers.rpy
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
init -300 python:

speakers = []
fs = Character(None, kind=nvl)
centered = Character(None, kind=nvl, what_xalign=0.5, what_yalign=0.5)

speakers = {
#"fs":fs,
#"centered":centered
}

base_speakers = {
"boy":"#729fcf", "boy1":"#729fcf", "boy2":"#729fcf",
"boy3":"#729fcf", "girl":"#e65fc8", "girl1":"#e65fc8",
"girl2":"#e65fc8","girl3":"#e65fc8",
"men":"#3465a4", "women":"#ad7fa8",
"boy":"#729fcf", "boy_1":"#729fcf", "boy_2":"#729fcf",
"boy_3":"#729fcf", "boys":"#729fcf", "girl":"#e65fc8",
"girl_1":"#e65fc8", "girl_2":"#e65fc8","girl_3":"#e65fc8",
"girls":"#e65fc8", "men":"#3465a4", "women":"#ad7fa8",
"developer":"#cc0000", "debug":"#ef2920"
}

for sp in base_speakers.items():
var_name = sp[0]
ch_name = var_name.title()
ch_name = var_name.replace("_", " ")
ch_name = ch_name.title()
xcolor = sp[1]
globals()[var_name] = Character(ch_name, color = xcolor)
speakers.append(globals()[var_name])
speakers[var_name] = globals()[var_name]
4 changes: 0 additions & 4 deletions game/Event Editor/images.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,3 @@ init -300 python:

def addChs(src, prefix = ''):
addImgs(src, prefix, characters)

addBGs('images/bgs')
addEVs('images/events')
addChs('images/characters')
23 changes: 15 additions & 8 deletions game/Event Editor/mods.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,20 @@ label mods_sec:
return

screen mods_selection:
vbox:
box_wrap True
yalign 0.5
xalign 0.5
side "c b r":
area (100, 100, 600, 400)
viewport id "vp":
draggable True
mousewheel True

for mod in mods.items():
$n = mod[0]
$mod_start = mod[1]
vbox:
box_wrap True
yalign 0.5
xalign 0.5

textbutton _(n) action Return(mod_start) xminimum 200
for mod in mods.items():
$n = mod[0]
$mod_start = mod[1]
textbutton _(n) action Return(mod_start) xminimum 200

vbar value YScrollValue("vp")
19 changes: 19 additions & 0 deletions game/events/EEout_main_start.rpy
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
label EEout_main_start:
scene bg start code
developer "Hi! Welcome in Ren'Py Event Editor."
scene bg start imgs
developer "First put right images(png and jpg) to right folders:\n
- backgrounds to 'game/images/bgs'\n
- character sprites to 'game/images/charaters'\n
- events images in 'game/images/events'"
menu:
"I done this already":
scene bg start code
developer "Now see Tutorial then 'Add New Event' and call it 'start'.\n
It will over write this file."
jump EE_start

"I will comeback later":
pass

return
9 changes: 9 additions & 0 deletions game/events/EEout_main_test.rpy
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
label EEout_main_test:
scene black
centered "THIS TEXT CENTER"

sombody "somobdy test"

boy3 "old chr test"

return
2 changes: 1 addition & 1 deletion game/main_menu.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ screen main_menu():

has vbox

textbutton _("New Game") action Start("EEout_start")
textbutton _("New Game") action Start("EEout_main_start")
textbutton _("Mods") action Start("mods_sec")
textbutton _("Add New Event") action Start("EE_start")
textbutton _("Test Event") action Start("EE_test")
Expand Down
10 changes: 5 additions & 5 deletions game/mods/test/events/EEout_test_two.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ label EEout_test_two:
show sylvie surprised at Position(xanchor=0.5,xpos=0.500000)
sylvie "Do you realy want to know?"

"You" "Yes."
you "Yes."

sylvie "Okey, go with me."

Expand Down Expand Up @@ -45,15 +45,15 @@ label EEout_test_two:
show sylvie giggle at Position(xanchor=0.5,xpos=0.500000)
sylvie "Do you want do to some visual novel with me?"

"You" "Yes."
you "Yes."

sylvie "Ok, but it depends from wath vns are for you."

menu:
"Internet and vn are for ...":
scene test bg uni
show sylvie surprised at Position(xanchor=0.5,xpos=0.500000)
"You" "... Hentai."
you "... Hentai."

show sylvie surprised at Position(xanchor=0.5,xpos=1.000000)
sylvie "What?!"
Expand Down Expand Up @@ -81,13 +81,13 @@ label EEout_test_two:
show sylvie green smile at Position(xanchor=0.5,xpos=0.500000)
"Finally she cameback."

"You" "Why you change your dress?"
you "Why you change your dress?"

sylvie "What?"

developer "I just borow this sprites for 'The Question' that came with Ren'Py. "

"You" "Nevermind. What is this notebook for?"
you "Nevermind. What is this notebook for?"

sylvie "I write here some ideas for vns."

Expand Down
7 changes: 5 additions & 2 deletions game/mods/test/mod.conf.rpy
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# this is example config mod to develop with Ren'Py Event Editor
init -200 python:
sylvie = Character("Sylvie", color = "#e65fc8")
speakers.append(sylvie)
sylv = Character("Sylvie", color = "#e65fc8")
speakers["sylv"] = sylv

you = Character("You")
speakers["you"] = you

test_mod = "test"
test_mp = "mods/"+ test_mod
Expand Down
2 changes: 2 additions & 0 deletions launcherinfo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
description = "Using this you can speed up creating events for your events and change this roject to your game."
ro = True

0 comments on commit ee2ca3a

Please sign in to comment.